Skip to content

Commit 2961b0a

Browse files
committed
internal: fix typo in getViews()
1 parent 62e6bf7 commit 2961b0a

File tree

1 file changed

+2
-2
lines changed
  • plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/javascript/core

1 file changed

+2
-2
lines changed

plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/javascript/core/JSBindings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public void clear() {
257257
throw new UnsupportedOperationException();
258258
}
259259

260-
private static class Views {
260+
static class Views {
261261
volatile Set<ASTNode> keySet;
262262
volatile Collection<IValueReference> values;
263263
volatile Set<Map.Entry<ASTNode, IValueReference>> entrySet;
@@ -266,7 +266,7 @@ private static class Views {
266266
private transient Views views;
267267

268268
private synchronized Views getViews() {
269-
if (views != null) {
269+
if (views == null) {
270270
views = new Views();
271271
}
272272
return views;

0 commit comments

Comments
 (0)