From 652f03ae0cd5f595285f9fe514c14ff495af1176 Mon Sep 17 00:00:00 2001 From: Stefan Marr Date: Sat, 30 Jan 2016 00:05:47 +0100 Subject: [PATCH 1/3] Fix checkstyle issue with redundant public keyword Signed-off-by: Stefan Marr --- .../truffle/api/dsl/internal/DSLOptions.java | 6 ++-- .../api/dsl/internal/SlowPathEvent.java | 14 +++++----- .../api/dsl/internal/SpecializationNode.java | 28 +++++++++---------- .../truffle/api/interop/java/JavaInterop.java | 10 +++---- .../truffle/api/interop/java/ReadArgNode.java | 2 +- .../api/interop/java/WriteFieldNode.java | 2 +- .../src/com/oracle/truffle/api/CallTest.java | 2 +- .../com/oracle/truffle/api/ChildNodeTest.java | 4 +-- .../oracle/truffle/api/ChildrenNodesTest.java | 6 ++-- .../oracle/truffle/api/FinalFieldTest.java | 4 +-- .../api/FrameSlotTypeSpecializationTest.java | 4 +-- .../src/com/oracle/truffle/api/FrameTest.java | 8 +++--- .../truffle/api/InterfaceChildFieldTest.java | 10 +++---- .../com/oracle/truffle/api/ReplaceTest.java | 6 ++-- .../api/ReturnTypeSpecializationTest.java | 6 ++-- .../com/oracle/truffle/api/RootNodeTest.java | 2 +- .../oracle/truffle/api/ThreadSafetyTest.java | 10 +++---- .../api/instrument/InstrumentationTest.java | 4 +-- .../instrument/InstrumentationTestNodes.java | 10 +++---- .../interop/ForeignAccessToStringTest.java | 2 +- .../truffle/api/nodes/NodeUtilTest.java | 4 +-- .../truffle/api/nodes/SafeReplaceTest.java | 2 +- .../SeparateClassloaderTestRunner.java | 2 +- .../truffle/api/vm/ArrayTruffleObject.java | 6 ++-- .../oracle/truffle/api/vm/HashLanguage.java | 2 +- .../api/vm/ImplicitExplicitExportTest.java | 2 +- .../truffle/api/vm/InitializationTest.java | 2 +- .../oracle/truffle/api/TruffleLanguage.java | 2 +- .../api/debug/LineBreakpointFactory.java | 2 +- .../truffle/api/debug/LineToProbesMap.java | 2 +- .../truffle/api/nodes/GraphPrintVisitor.java | 4 +-- .../oracle/truffle/api/nodes/NodeUtil.java | 4 +-- .../oracle/truffle/api/nodes/RootNode.java | 4 +-- .../com/oracle/truffle/api/source/Source.java | 14 +++++----- .../dsl/processor/AnnotationProcessor.java | 2 +- .../dsl/processor/InteropProcessor.java | 2 +- .../generator/NodeFactoryFactory.java | 2 +- .../processor/generator/NodeGenFactory.java | 2 +- .../generator/TypeSystemCodeGenerator.java | 2 +- .../dsl/processor/java/model/CodeElement.java | 4 +-- .../dsl/processor/java/model/CodeNames.java | 2 +- .../processor/java/model/CodeTreeBuilder.java | 4 +-- .../java/transform/AbstractCodeWriter.java | 4 +-- .../java/transform/OrganizedImports.java | 2 +- .../dsl/processor/parser/TypeCastParser.java | 2 +- .../dsl/processor/parser/TypeCheckParser.java | 2 +- .../parser/TypeSystemMethodParser.java | 2 +- .../truffle/object/ConsListPropertyMap.java | 2 +- .../truffle/object/debug/ShapeProfiler.java | 2 +- .../truffle/sl/parser/SLNodeFactory.java | 2 +- .../sl/runtime/SLFunctionForeignAccess.java | 6 ++-- 51 files changed, 118 insertions(+), 118 deletions(-) diff --git a/truffle/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/internal/DSLOptions.java b/truffle/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/internal/DSLOptions.java index 455a32a3624e..c1014d397a36 100644 --- a/truffle/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/internal/DSLOptions.java +++ b/truffle/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/internal/DSLOptions.java @@ -51,7 +51,7 @@ /** Not yet implemented. */ boolean useDisjunctiveMethodGuardOptimization() default true; - public enum ImplicitCastOptimization { + enum ImplicitCastOptimization { /** Perform no informed optimization for implicit casts. */ NONE, @@ -78,7 +78,7 @@ public boolean isMergeCasts() { } } - public enum TypeBoxingOptimization { + enum TypeBoxingOptimization { /** Perform the optimization for all types. */ ALWAYS, /** Perform the optimization just for primitive types. */ @@ -117,7 +117,7 @@ public enum TypeBoxingOptimization { */ TypeBoxingOptimization voidBoxingOptimization() default TypeBoxingOptimization.PRIMITIVE; - public enum FallbackOptimization { + enum FallbackOptimization { /** Always generate an optimized fallback specialization. */ ALWAYS, diff --git a/truffle/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/internal/SlowPathEvent.java b/truffle/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/internal/SlowPathEvent.java index 5a3fcd9091a2..2d4356770476 100644 --- a/truffle/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/internal/SlowPathEvent.java +++ b/truffle/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/internal/SlowPathEvent.java @@ -98,7 +98,7 @@ static class SlowPathEvent0 extends SlowPathEvent { private static final Object[] EMPTY = new Object[0]; - public SlowPathEvent0(SpecializationNode source, String reason, Frame frame) { + SlowPathEvent0(SpecializationNode source, String reason, Frame frame) { super(source, reason, frame); } @@ -113,7 +113,7 @@ static class SlowPathEvent1 extends SlowPathEvent { protected final Object o1; - public SlowPathEvent1(SpecializationNode source, String reason, Frame frame, Object o1) { + SlowPathEvent1(SpecializationNode source, String reason, Frame frame, Object o1) { super(source, reason, frame); this.o1 = o1; } @@ -130,7 +130,7 @@ static class SlowPathEvent2 extends SlowPathEvent { protected final Object o1; protected final Object o2; - public SlowPathEvent2(SpecializationNode source, String reason, Frame frame, Object o1, Object o2) { + SlowPathEvent2(SpecializationNode source, String reason, Frame frame, Object o1, Object o2) { super(source, reason, frame); this.o1 = o1; this.o2 = o2; @@ -149,7 +149,7 @@ static class SlowPathEvent3 extends SlowPathEvent { protected final Object o2; protected final Object o3; - public SlowPathEvent3(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3) { + SlowPathEvent3(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3) { super(source, reason, frame); this.o1 = o1; this.o2 = o2; @@ -170,7 +170,7 @@ static class SlowPathEvent4 extends SlowPathEvent { protected final Object o3; protected final Object o4; - public SlowPathEvent4(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3, Object o4) { + SlowPathEvent4(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3, Object o4) { super(source, reason, frame); this.o1 = o1; this.o2 = o2; @@ -193,7 +193,7 @@ static class SlowPathEvent5 extends SlowPathEvent { protected final Object o4; protected final Object o5; - public SlowPathEvent5(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3, Object o4, Object o5) { + SlowPathEvent5(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3, Object o4, Object o5) { super(source, reason, frame); this.o1 = o1; this.o2 = o2; @@ -213,7 +213,7 @@ static class SlowPathEventN extends SlowPathEvent { protected final Object[] args; - public SlowPathEventN(SpecializationNode source, String reason, Frame frame, Object... args) { + SlowPathEventN(SpecializationNode source, String reason, Frame frame, Object... args) { super(source, reason, frame); this.args = args; } diff --git a/truffle/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/internal/SpecializationNode.java b/truffle/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/internal/SpecializationNode.java index e560a51d86ff..c694a9ec67e5 100644 --- a/truffle/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/internal/SpecializationNode.java +++ b/truffle/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/internal/SpecializationNode.java @@ -622,7 +622,7 @@ protected static boolean isValid(Assumption[] assumptions) { private static final class InsertionEvent0 extends SlowPathEvent0 implements Callable { - public InsertionEvent0(SpecializationNode source, String reason, Frame frame) { + InsertionEvent0(SpecializationNode source, String reason, Frame frame) { super(source, reason, frame); } @@ -646,7 +646,7 @@ public SpecializationNode call() throws Exception { private static final class InsertionEvent1 extends SlowPathEvent1 implements Callable { - public InsertionEvent1(SpecializationNode source, String reason, Frame frame, Object o1) { + InsertionEvent1(SpecializationNode source, String reason, Frame frame, Object o1) { super(source, reason, frame, o1); } @@ -670,7 +670,7 @@ public SpecializationNode call() throws Exception { private static final class InsertionEvent2 extends SlowPathEvent2 implements Callable { - public InsertionEvent2(SpecializationNode source, String reason, Frame frame, Object o1, Object o2) { + InsertionEvent2(SpecializationNode source, String reason, Frame frame, Object o1, Object o2) { super(source, reason, frame, o1, o2); } @@ -694,7 +694,7 @@ public SpecializationNode call() throws Exception { private static final class InsertionEvent3 extends SlowPathEvent3 implements Callable { - public InsertionEvent3(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3) { + InsertionEvent3(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3) { super(source, reason, frame, o1, o2, o3); } @@ -718,7 +718,7 @@ public SpecializationNode call() throws Exception { private static final class InsertionEvent4 extends SlowPathEvent4 implements Callable { - public InsertionEvent4(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3, Object o4) { + InsertionEvent4(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3, Object o4) { super(source, reason, frame, o1, o2, o3, o4); } @@ -742,7 +742,7 @@ public SpecializationNode call() throws Exception { private static final class InsertionEvent5 extends SlowPathEvent5 implements Callable { - public InsertionEvent5(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3, Object o4, Object o5) { + InsertionEvent5(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3, Object o4, Object o5) { super(source, reason, frame, o1, o2, o3, o4, o5); } @@ -766,7 +766,7 @@ public SpecializationNode call() throws Exception { private static final class InsertionEventN extends SlowPathEventN implements Callable { - public InsertionEventN(SpecializationNode source, String reason, Frame frame, Object[] args) { + InsertionEventN(SpecializationNode source, String reason, Frame frame, Object[] args) { super(source, reason, frame, args); } @@ -789,7 +789,7 @@ public SpecializationNode call() throws Exception { private static final class RemoveEvent0 extends SlowPathEvent0 implements Callable { - public RemoveEvent0(SpecializationNode source, String reason, Frame frame) { + RemoveEvent0(SpecializationNode source, String reason, Frame frame) { super(source, reason, frame); } @@ -801,7 +801,7 @@ public SpecializationNode call() throws Exception { private static final class RemoveEvent1 extends SlowPathEvent1 implements Callable { - public RemoveEvent1(SpecializationNode source, String reason, Frame frame, Object o1) { + RemoveEvent1(SpecializationNode source, String reason, Frame frame, Object o1) { super(source, reason, frame, o1); } @@ -813,7 +813,7 @@ public SpecializationNode call() throws Exception { private static final class RemoveEvent2 extends SlowPathEvent2 implements Callable { - public RemoveEvent2(SpecializationNode source, String reason, Frame frame, Object o1, Object o2) { + RemoveEvent2(SpecializationNode source, String reason, Frame frame, Object o1, Object o2) { super(source, reason, frame, o1, o2); } @@ -825,7 +825,7 @@ public SpecializationNode call() throws Exception { private static final class RemoveEvent3 extends SlowPathEvent3 implements Callable { - public RemoveEvent3(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3) { + RemoveEvent3(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3) { super(source, reason, frame, o1, o2, o3); } @@ -837,7 +837,7 @@ public SpecializationNode call() throws Exception { private static final class RemoveEvent4 extends SlowPathEvent4 implements Callable { - public RemoveEvent4(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3, Object o4) { + RemoveEvent4(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3, Object o4) { super(source, reason, frame, o1, o2, o3, o4); } @@ -849,7 +849,7 @@ public SpecializationNode call() throws Exception { private static final class RemoveEvent5 extends SlowPathEvent5 implements Callable { - public RemoveEvent5(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3, Object o4, Object o5) { + RemoveEvent5(SpecializationNode source, String reason, Frame frame, Object o1, Object o2, Object o3, Object o4, Object o5) { super(source, reason, frame, o1, o2, o3, o4, o5); } @@ -861,7 +861,7 @@ public SpecializationNode call() throws Exception { private static final class RemoveEventN extends SlowPathEventN implements Callable { - public RemoveEventN(SpecializationNode source, String reason, Frame frame, Object[] args) { + RemoveEventN(SpecializationNode source, String reason, Frame frame, Object[] args) { super(source, reason, frame, args); } diff --git a/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/JavaInterop.java b/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/JavaInterop.java index ccd4d24fed5b..fd9f90aab6da 100644 --- a/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/JavaInterop.java +++ b/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/JavaInterop.java @@ -298,7 +298,7 @@ private static final class SingleHandler implements InvocationHandler { private final TruffleObject symbol; private CallTarget target; - public SingleHandler(TruffleObject obj) { + SingleHandler(TruffleObject obj) { this.symbol = obj; } @@ -318,7 +318,7 @@ public Object invoke(Object proxy, Method method, Object[] arguments) throws Thr private static final class TruffleHandler implements InvocationHandler { private final TruffleObject obj; - public TruffleHandler(TruffleObject obj) { + TruffleHandler(TruffleObject obj) { this.obj = obj; } @@ -502,7 +502,7 @@ private static class TemporaryRoot extends RootNode { private final TruffleObject function; @SuppressWarnings("rawtypes") - public TemporaryRoot(Class lang, Node foreignAccess, TruffleObject function) { + TemporaryRoot(Class lang, Node foreignAccess, TruffleObject function) { super(lang, null, null); this.foreignAccess = foreignAccess; this.function = function; @@ -519,7 +519,7 @@ static final class JavaFunctionObject implements TruffleObject { final Method method; final Object obj; - public JavaFunctionObject(Method method, Object obj) { + JavaFunctionObject(Method method, Object obj) { this.method = method; this.obj = obj; } @@ -537,7 +537,7 @@ static final class JavaObject implements TruffleObject { final Object obj; final Class clazz; - public JavaObject(Object obj, Class clazz) { + JavaObject(Object obj, Class clazz) { this.obj = obj; this.clazz = clazz; } diff --git a/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/ReadArgNode.java b/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/ReadArgNode.java index def90a6a887a..b61d312999b5 100644 --- a/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/ReadArgNode.java +++ b/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/ReadArgNode.java @@ -31,7 +31,7 @@ class ReadArgNode extends Node { private final int argIndex; - public ReadArgNode(int argIndex) { + ReadArgNode(int argIndex) { this.argIndex = argIndex; } diff --git a/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/WriteFieldNode.java b/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/WriteFieldNode.java index cf8572b805cc..c972c8627a0c 100644 --- a/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/WriteFieldNode.java +++ b/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/WriteFieldNode.java @@ -32,7 +32,7 @@ class WriteFieldNode extends RootNode { - public WriteFieldNode() { + WriteFieldNode() { super(JavaInteropLanguage.class, null, null); } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/CallTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/CallTest.java index 24ca22fdd9bf..dc46078cd248 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/CallTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/CallTest.java @@ -87,7 +87,7 @@ class ConstantRootNode extends RootNode { private final int value; - public ConstantRootNode(int value) { + ConstantRootNode(int value) { super(TestingLanguage.class, null, null); this.value = value; } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ChildNodeTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ChildNodeTest.java index 4c42cece5c85..768ff7414563 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ChildNodeTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ChildNodeTest.java @@ -89,7 +89,7 @@ class TestRootNode extends RootNode { @Child private TestChildNode left; @Child private TestChildNode right; - public TestRootNode(TestChildNode left, TestChildNode right) { + TestRootNode(TestChildNode left, TestChildNode right) { super(TestingLanguage.class, null, null); this.left = left; this.right = right; @@ -103,7 +103,7 @@ public Object execute(VirtualFrame frame) { class TestChildNode extends Node { - public TestChildNode() { + TestChildNode() { super(null); } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ChildrenNodesTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ChildrenNodesTest.java index f712a45a7aad..3fb6e010a80d 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ChildrenNodesTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ChildrenNodesTest.java @@ -84,7 +84,7 @@ class TestRootNode extends RootNode { @Children private final TestChildNode[] children; - public TestRootNode(TestChildNode[] children) { + TestRootNode(TestChildNode[] children) { super(TestingLanguage.class, null, null); this.children = children; } @@ -101,7 +101,7 @@ public Object execute(VirtualFrame frame) { class TestChildNode extends Node { - public TestChildNode() { + TestChildNode() { super(null); } @@ -137,7 +137,7 @@ class TestRoot2Node extends TestRootNode { @Children private final TestChildNode[] children1; @Children private final TestChildNode[] children2; - public TestRoot2Node(TestChildNode[] children1, TestChildNode[] children2) { + TestRoot2Node(TestChildNode[] children1, TestChildNode[] children2) { super(new TestChildNode[0]); this.children1 = children1; this.children2 = children2; diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/FinalFieldTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/FinalFieldTest.java index c112e705029b..7ab88c2a7048 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/FinalFieldTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/FinalFieldTest.java @@ -77,7 +77,7 @@ private static class TestRootNode extends RootNode { @Children private final TestChildNode[] children; - public TestRootNode(TestChildNode[] children) { + TestRootNode(TestChildNode[] children) { super(TestingLanguage.class, null, null); this.children = children; } @@ -96,7 +96,7 @@ private static class TestChildNode extends Node { private final int value; - public TestChildNode(int value) { + TestChildNode(int value) { super(null); this.value = value; } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/FrameSlotTypeSpecializationTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/FrameSlotTypeSpecializationTest.java index da97e3d9fe60..d2f837c5cd97 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/FrameSlotTypeSpecializationTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/FrameSlotTypeSpecializationTest.java @@ -80,7 +80,7 @@ class TestRootNode extends RootNode { @Child TestChildNode left; @Child TestChildNode right; - public TestRootNode(FrameDescriptor descriptor, TestChildNode left, TestChildNode right) { + TestRootNode(FrameDescriptor descriptor, TestChildNode left, TestChildNode right) { super(TestingLanguage.class, null, descriptor); this.left = left; this.right = right; @@ -106,7 +106,7 @@ abstract class FrameSlotNode extends TestChildNode { protected final FrameSlot slot; - public FrameSlotNode(FrameSlot slot) { + FrameSlotNode(FrameSlot slot) { this.slot = slot; } } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/FrameTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/FrameTest.java index d287eaebece1..808c0492ebd6 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/FrameTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/FrameTest.java @@ -110,7 +110,7 @@ class TestRootNode extends RootNode { @Child TestChildNode left; @Child TestChildNode right; - public TestRootNode(FrameDescriptor descriptor, TestChildNode left, TestChildNode right) { + TestRootNode(FrameDescriptor descriptor, TestChildNode left, TestChildNode right) { super(TestingLanguage.class, null, descriptor); this.left = left; this.right = right; @@ -124,7 +124,7 @@ public Object execute(VirtualFrame frame) { abstract class TestChildNode extends Node { - public TestChildNode() { + TestChildNode() { super(null); } @@ -135,7 +135,7 @@ abstract class FrameSlotNode extends TestChildNode { protected final FrameSlot slot; - public FrameSlotNode(FrameSlot slot) { + FrameSlotNode(FrameSlot slot) { this.slot = slot; } } @@ -175,7 +175,7 @@ public void framesCanBeMaterialized() { class FrameRootNode extends RootNode { - public FrameRootNode() { + FrameRootNode() { super(TestingLanguage.class, null, null); } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/InterfaceChildFieldTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/InterfaceChildFieldTest.java index 41fa98a8a98a..5ce24b098575 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/InterfaceChildFieldTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/InterfaceChildFieldTest.java @@ -96,7 +96,7 @@ class TestRootNode extends RootNode { @Child private TestChildInterface child; - public TestRootNode(TestChildInterface child) { + TestRootNode(TestChildInterface child) { super(TestingLanguage.class, null, null); this.child = child; } @@ -112,7 +112,7 @@ interface TestChildInterface extends NodeInterface { } class TestLeafNode extends Node implements TestChildInterface { - public TestLeafNode() { + TestLeafNode() { super(null); } @@ -122,7 +122,7 @@ public int executeIntf() { } class TestLeaf2Node extends Node implements TestChildInterface { - public TestLeaf2Node() { + TestLeaf2Node() { super(null); } @@ -136,7 +136,7 @@ class TestChildNode extends Node implements TestChildInterface { @Child private TestChildInterface left; @Child private TestChildInterface right; - public TestChildNode(TestChildInterface left, TestChildInterface right) { + TestChildNode(TestChildInterface left, TestChildInterface right) { super(null); this.left = left; this.right = right; @@ -152,7 +152,7 @@ class TestChildrenNode extends Node implements TestChildInterface { @Children private final TestChildInterface[] children; - public TestChildrenNode(TestChildInterface[] children) { + TestChildrenNode(TestChildInterface[] children) { super(null); this.children = children; } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ReplaceTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ReplaceTest.java index 6587ca0998e9..0d947a5b8b18 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ReplaceTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ReplaceTest.java @@ -97,7 +97,7 @@ class TestRootNode extends RootNode { @Children private final ValueNode[] children; - public TestRootNode(ValueNode[] children) { + TestRootNode(ValueNode[] children) { super(TestingLanguage.class, null, null); this.children = children; } @@ -114,7 +114,7 @@ public Object execute(VirtualFrame frame) { abstract class ValueNode extends Node { - public ValueNode() { + ValueNode() { super(null); } @@ -125,7 +125,7 @@ class UnresolvedNode extends ValueNode { private final String value; - public UnresolvedNode(String value) { + UnresolvedNode(String value) { this.value = value; } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ReturnTypeSpecializationTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ReturnTypeSpecializationTest.java index f63781de97e7..68ef6e4894c0 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ReturnTypeSpecializationTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ReturnTypeSpecializationTest.java @@ -80,7 +80,7 @@ class TestRootNode extends RootNode { @Child TestChildNode left; @Child TestChildNode right; - public TestRootNode(FrameDescriptor descriptor, TestChildNode left, TestChildNode right) { + TestRootNode(FrameDescriptor descriptor, TestChildNode left, TestChildNode right) { super(TestingLanguage.class, null, descriptor); this.left = left; this.right = right; @@ -95,7 +95,7 @@ public Object execute(VirtualFrame frame) { abstract class TestChildNode extends Node { - public TestChildNode() { + TestChildNode() { super(null); } @@ -114,7 +114,7 @@ abstract class FrameSlotNode extends TestChildNode { protected final FrameSlot slot; - public FrameSlotNode(FrameSlot slot) { + FrameSlotNode(FrameSlot slot) { this.slot = slot; } } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/RootNodeTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/RootNodeTest.java index c6d5c29a39af..529c37e2b149 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/RootNodeTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/RootNodeTest.java @@ -71,7 +71,7 @@ public void test() { class TestRootNode extends RootNode { - public TestRootNode() { + TestRootNode() { super(TestingLanguage.class, null, null); } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ThreadSafetyTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ThreadSafetyTest.java index 3870ad1ad180..ad4d2f50a8e3 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ThreadSafetyTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/ThreadSafetyTest.java @@ -89,7 +89,7 @@ static class TestRootNode extends RootNode { @Child private ValueNode child; - public TestRootNode(ValueNode child) { + TestRootNode(ValueNode child) { super(TestingLanguage.class, null, null); this.child = child; } @@ -102,7 +102,7 @@ public Object execute(VirtualFrame frame) { abstract static class ValueNode extends Node { - public ValueNode() { + ValueNode() { super(null); } @@ -114,11 +114,11 @@ static class RewritingNode extends ValueNode { @Child private ValueNode child; private final Random random; - public RewritingNode(ValueNode child) { + RewritingNode(ValueNode child) { this(child, new Random()); } - public RewritingNode(ValueNode child, Random random) { + RewritingNode(ValueNode child, Random random) { this.child = child; this.random = random; } @@ -139,7 +139,7 @@ static class OtherRewritingNode extends ValueNode { @Child private ValueNode child; private final Random random; - public OtherRewritingNode(ValueNode child, Random random) { + OtherRewritingNode(ValueNode child, Random random) { this.child = child; this.random = random; } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/instrument/InstrumentationTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/instrument/InstrumentationTest.java index 7732548af824..b32932770b16 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/instrument/InstrumentationTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/instrument/InstrumentationTest.java @@ -205,7 +205,7 @@ private class TestSimpleInstrumentCounter implements TestCounter { public Instrumenter instrumenter; private ProbeInstrument instrument; - public TestSimpleInstrumentCounter(Instrumenter instrumenter) { + TestSimpleInstrumentCounter(Instrumenter instrumenter) { this.instrumenter = instrumenter; } @@ -257,7 +257,7 @@ private class TestStandardInstrumentCounter implements TestCounter { public final Instrumenter instrumenter; public ProbeInstrument instrument; - public TestStandardInstrumentCounter(Instrumenter instrumenter) { + TestStandardInstrumentCounter(Instrumenter instrumenter) { this.instrumenter = instrumenter; } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/instrument/InstrumentationTestNodes.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/instrument/InstrumentationTestNodes.java index ff424af8c3f4..fc6630e27e6d 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/instrument/InstrumentationTestNodes.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/instrument/InstrumentationTestNodes.java @@ -44,7 +44,7 @@ static class TestLanguageWrapperNode extends TestLanguageNode implements Wrapper @Child private TestLanguageNode child; @Child private EventHandlerNode eventHandlerNode; - public TestLanguageWrapperNode(TestLanguageNode child) { + TestLanguageWrapperNode(TestLanguageNode child) { assert !(child instanceof TestLanguageWrapperNode); this.child = child; } @@ -90,7 +90,7 @@ public Object execute(VirtualFrame vFrame) { static class TestValueNode extends TestLanguageNode { private final int value; - public TestValueNode(int value) { + TestValueNode(int value) { this.value = value; } @@ -107,7 +107,7 @@ static class TestAdditionNode extends TestLanguageNode { @Child private TestLanguageNode leftChild; @Child private TestLanguageNode rightChild; - public TestAdditionNode(TestValueNode leftChild, TestValueNode rightChild) { + TestAdditionNode(TestValueNode leftChild, TestValueNode rightChild) { this.leftChild = insert(leftChild); this.rightChild = insert(rightChild); } @@ -131,7 +131,7 @@ static class InstrumentationTestRootNode extends RootNode { * newly created AST. Global registry is not used, since that would interfere with other * tests run in the same environment. */ - public InstrumentationTestRootNode(TestLanguageNode body) { + InstrumentationTestRootNode(TestLanguageNode body) { super(InstrumentationTestingLanguage.class, null, null); this.body = body; } @@ -162,7 +162,7 @@ static class TestRootNode extends RootNode { * newly created AST. Global registry is not used, since that would interfere with other * tests run in the same environment. */ - public TestRootNode(TestLanguageNode body, Instrumenter instrumenter) { + TestRootNode(TestLanguageNode body, Instrumenter instrumenter) { super(InstrumentationTestingLanguage.class, null, null); this.instrumenter = instrumenter; this.body = body; diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/interop/ForeignAccessToStringTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/interop/ForeignAccessToStringTest.java index e0081a9c9c2e..d957d53badce 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/interop/ForeignAccessToStringTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/interop/ForeignAccessToStringTest.java @@ -42,7 +42,7 @@ public void check10Factory() { } private static class SimpleTestingFactory implements ForeignAccess.Factory { - public SimpleTestingFactory() { + SimpleTestingFactory() { } @Override diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/nodes/NodeUtilTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/nodes/NodeUtilTest.java index cc707faa0d9d..660d8a0403b0 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/nodes/NodeUtilTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/nodes/NodeUtilTest.java @@ -73,7 +73,7 @@ private static class TestNode extends Node { private int visited; - public TestNode() { + TestNode() { } } @@ -84,7 +84,7 @@ private static class TestRootNode extends RootNode { private int visited; - public TestRootNode() { + TestRootNode() { super(TestingLanguage.class, null, null); } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/nodes/SafeReplaceTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/nodes/SafeReplaceTest.java index 5d8c501c665f..eecd14c5d649 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/nodes/SafeReplaceTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/nodes/SafeReplaceTest.java @@ -83,7 +83,7 @@ private static class TestRootNode extends RootNode { private int executed; - public TestRootNode() { + TestRootNode() { super(TestingLanguage.class, null, null); } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/profiles/SeparateClassloaderTestRunner.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/profiles/SeparateClassloaderTestRunner.java index cdb4e7b465c7..fa4ba6d6185a 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/profiles/SeparateClassloaderTestRunner.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/profiles/SeparateClassloaderTestRunner.java @@ -47,7 +47,7 @@ public Theories(Class clazz) throws InitializationError { } private static class TestClassLoader extends URLClassLoader { - public TestClassLoader() { + TestClassLoader() { super(((URLClassLoader) getSystemClassLoader()).getURLs()); } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/ArrayTruffleObject.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/ArrayTruffleObject.java index 88bf4f8d4f54..1ccc65fb660f 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/ArrayTruffleObject.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/ArrayTruffleObject.java @@ -126,7 +126,7 @@ private static CallTarget target(RootNode node) { } private final class IndexNode extends RootNode { - public IndexNode() { + IndexNode() { super(TruffleLanguage.class, null, null); } @@ -142,7 +142,7 @@ public Object execute(VirtualFrame frame) { } private final class InvokeNode extends RootNode { - public InvokeNode() { + InvokeNode() { super(TruffleLanguage.class, null, null); } @@ -162,7 +162,7 @@ public Object execute(VirtualFrame frame) { } private final class DuplNode extends RootNode { - public DuplNode() { + DuplNode() { super(TruffleLanguage.class, null, null); } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/HashLanguage.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/HashLanguage.java index 390be3b4ecab..2a0255f21d4e 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/HashLanguage.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/HashLanguage.java @@ -92,7 +92,7 @@ private static class HashNode extends RootNode { private final Source code; private final int id; - public HashNode(HashLanguage hash, Source code) { + HashNode(HashLanguage hash, Source code) { super(hash.getClass(), null, null); this.code = code; id = ++counter; diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/ImplicitExplicitExportTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/ImplicitExplicitExportTest.java index 03341e3ef032..05df2ce5aaca 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/ImplicitExplicitExportTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/ImplicitExplicitExportTest.java @@ -137,7 +137,7 @@ static final class Ctx implements TruffleObject { final Map implicit = new HashMap<>(); final Env env; - public Ctx(Env env) { + Ctx(Env env) { this.env = env; } diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/InitializationTest.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/InitializationTest.java index dd75849b9ee6..249b01196951 100644 --- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/InitializationTest.java +++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/vm/InitializationTest.java @@ -128,7 +128,7 @@ public Object execute(VirtualFrame frame) { private static class ANode extends Node { private final int constant; - public ANode(int constant) { + ANode(int constant) { this.constant = constant; } diff --git a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleLanguage.java b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleLanguage.java index 24985bbfa8ba..b6534c700adb 100644 --- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleLanguage.java +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleLanguage.java @@ -322,7 +322,7 @@ private static final class LangCtx { final TruffleLanguage lang; final C ctx; - public LangCtx(TruffleLanguage lang, Env env) { + LangCtx(TruffleLanguage lang, Env env) { this.lang = lang; // following call verifies that Accessor.CURRENT_VM is provided assert API.findLanguage(null, null) == null; diff --git a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/debug/LineBreakpointFactory.java b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/debug/LineBreakpointFactory.java index ba486dac20fb..2a661fbd1e7d 100644 --- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/debug/LineBreakpointFactory.java +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/debug/LineBreakpointFactory.java @@ -288,7 +288,7 @@ private final class LineBreakpointImpl extends LineBreakpoint implements EvalIns */ private List instruments = new ArrayList<>(); - public LineBreakpointImpl(int ignoreCount, LineLocation lineLocation, boolean oneShot) { + LineBreakpointImpl(int ignoreCount, LineLocation lineLocation, boolean oneShot) { super(ENABLED_UNRESOLVED, ignoreCount, oneShot); this.lineLocation = lineLocation; diff --git a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/debug/LineToProbesMap.java b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/debug/LineToProbesMap.java index 29666d871c25..a2299b3a5e4c 100644 --- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/debug/LineToProbesMap.java +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/debug/LineToProbesMap.java @@ -63,7 +63,7 @@ private static void trace(String msg) { * Create a map of {@link Probe}s that collects information on all probes added to subsequently * created ASTs (once installed). */ - public LineToProbesMap() { + LineToProbesMap() { this.probeListener = new LineToProbesListener(); } diff --git a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/GraphPrintVisitor.java b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/GraphPrintVisitor.java index 7010f5a10714..e176dc9b6b68 100644 --- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/GraphPrintVisitor.java +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/GraphPrintVisitor.java @@ -75,7 +75,7 @@ private static class NodeElement { private final int id; private final Map properties; - public NodeElement(int id) { + NodeElement(int id) { super(); this.id = id; this.properties = new LinkedHashMap<>(); @@ -96,7 +96,7 @@ private static class EdgeElement { private final int index; private final String label; - public EdgeElement(NodeElement from, NodeElement to, int index, String label) { + EdgeElement(NodeElement from, NodeElement to, int index, String label) { this.from = from; this.to = to; this.index = index; diff --git a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeUtil.java b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeUtil.java index c596a1fbc75b..e6ebfdba981a 100644 --- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeUtil.java +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeUtil.java @@ -63,7 +63,7 @@ public static Iterator makeRecursiveIterator(Node node) { private static final class RecursiveNodeIterator implements Iterator { private final List> iteratorStack = new ArrayList<>(); - public RecursiveNodeIterator(final Node node) { + RecursiveNodeIterator(final Node node) { iteratorStack.add(new Iterator() { private boolean visited; @@ -834,7 +834,7 @@ private static final class NodeCounter implements NodeVisitor { public int count; private final NodeCountFilter filter; - public NodeCounter(NodeCountFilter filter) { + NodeCounter(NodeCountFilter filter) { this.filter = filter; } diff --git a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/RootNode.java b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/RootNode.java index adebf978a81a..8722ebb28d3d 100644 --- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/RootNode.java +++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/RootNode.java @@ -140,7 +140,7 @@ public final void setCallTarget(RootCallTarget callTarget) { * stack) without prior knowledge of the language it has come from. * * Used for instance to determine the language of a RootNode: - * + * *
      * 
      * rootNode.getExecutionContext().getLanguageShortName();
@@ -195,7 +195,7 @@ private static final class Constant extends RootNode {
 
         private final Object value;
 
-        public Constant(Object value) {
+        Constant(Object value) {
             super(TruffleLanguage.class, null, null);
             this.value = value;
         }
diff --git a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/source/Source.java b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/source/Source.java
index ff945af43137..6a9e05264872 100644
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/source/Source.java
+++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/source/Source.java
@@ -706,7 +706,7 @@ private static final class LiteralSource extends Source implements Cloneable {
         private final String description;
         private final String code;
 
-        public LiteralSource(String description, String code) {
+        LiteralSource(String description, String code) {
             this.description = description;
             this.code = code;
         }
@@ -770,7 +770,7 @@ private static final class AppendableLiteralSource extends Source implements Clo
         private final String description;
         final List codeList = new ArrayList<>();
 
-        public AppendableLiteralSource(String description) {
+        AppendableLiteralSource(String description) {
             this.description = description;
         }
 
@@ -833,7 +833,7 @@ private static final class FileSource extends Source implements Cloneable {
 
         private String code = null;  // A cache of the file's contents
 
-        public FileSource(File file, String name, String path) {
+        FileSource(File file, String name, String path) {
             this.file = file.getAbsoluteFile();
             this.name = name;
             this.path = path;
@@ -938,7 +938,7 @@ private static final class ClientManagedFileSource extends Source implements Clo
         private final String path;  // Normalized path description of an actual file
         private String code;  // The file's contents, as provided by the client
 
-        public ClientManagedFileSource(File file, String name, String path, CharSequence chars) {
+        ClientManagedFileSource(File file, String name, String path, CharSequence chars) {
             this.file = file.getAbsoluteFile();
             this.name = name;
             this.path = path;
@@ -1035,7 +1035,7 @@ public static URLSource get(URL url, String name) throws IOException {
         private final String name;
         private String code;  // A cache of the source contents
 
-        public URLSource(URL url, String name) throws IOException {
+        URLSource(URL url, String name) throws IOException {
             this.url = url;
             this.name = name;
             URLConnection c = url.openConnection();
@@ -1143,7 +1143,7 @@ private static final class BytesSource extends Source implements Cloneable {
         private final int length;
         private final CharsetDecoder decoder;
 
-        public BytesSource(String name, byte[] bytes, int byteIndex, int length, Charset decoder) {
+        BytesSource(String name, byte[] bytes, int byteIndex, int length, Charset decoder) {
             this.name = name;
             this.bytes = bytes;
             this.byteIndex = byteIndex;
@@ -1256,7 +1256,7 @@ private static final class TextMap {
         // Is the final text character a newline?
         final boolean finalNL;
 
-        public TextMap(int[] nlOffsets, int textLength, boolean finalNL) {
+        TextMap(int[] nlOffsets, int textLength, boolean finalNL) {
             this.nlOffsets = nlOffsets;
             this.textLength = textLength;
             this.finalNL = finalNL;
diff --git a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/AnnotationProcessor.java b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/AnnotationProcessor.java
index 0e193cde170c..8244e0638393 100644
--- a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/AnnotationProcessor.java
+++ b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/AnnotationProcessor.java
@@ -45,7 +45,7 @@ class AnnotationProcessor {
 
     private final Set processedElements = new HashSet<>();
 
-    public AnnotationProcessor(AbstractParser parser, CodeTypeElementFactory factory) {
+    AnnotationProcessor(AbstractParser parser, CodeTypeElementFactory factory) {
         this.parser = parser;
         this.factory = factory;
     }
diff --git a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/InteropProcessor.java b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/InteropProcessor.java
index 5f7dbf5a6c5c..061f1780b04b 100644
--- a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/InteropProcessor.java
+++ b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/InteropProcessor.java
@@ -718,7 +718,7 @@ private static class FactoryGenerator {
 
         private final Map messageHandlers;
 
-        public FactoryGenerator(String packageName, String className, String receiverTypeClass, JavaFileObject factoryFile) {
+        FactoryGenerator(String packageName, String className, String receiverTypeClass, JavaFileObject factoryFile) {
             this.receiverTypeClass = receiverTypeClass;
             this.className = className;
             this.packageName = packageName;
diff --git a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/NodeFactoryFactory.java b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/NodeFactoryFactory.java
index b4eaa78898d8..060cca2b82a0 100644
--- a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/NodeFactoryFactory.java
+++ b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/NodeFactoryFactory.java
@@ -52,7 +52,7 @@ class NodeFactoryFactory {
     private final NodeData node;
     private final CodeTypeElement createdFactoryElement;
 
-    public NodeFactoryFactory(ProcessorContext context, NodeData node, CodeTypeElement createdClass) {
+    NodeFactoryFactory(ProcessorContext context, NodeData node, CodeTypeElement createdClass) {
         this.context = context;
         this.node = node;
         this.createdFactoryElement = createdClass;
diff --git a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/NodeGenFactory.java b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/NodeGenFactory.java
index a417be3ebc9a..e805ff7c9695 100644
--- a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/NodeGenFactory.java
+++ b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/NodeGenFactory.java
@@ -3110,7 +3110,7 @@ private abstract class SpecializationBody {
         private final boolean fastPath;
         private final boolean needsCastedValues;
 
-        public SpecializationBody(boolean fastPath, boolean needsCastedValues) {
+        SpecializationBody(boolean fastPath, boolean needsCastedValues) {
             this.fastPath = fastPath;
             this.needsCastedValues = needsCastedValues;
         }
diff --git a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/TypeSystemCodeGenerator.java b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/TypeSystemCodeGenerator.java
index deda2a8720d7..c5eafaf0296c 100644
--- a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/TypeSystemCodeGenerator.java
+++ b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/TypeSystemCodeGenerator.java
@@ -238,7 +238,7 @@ private static class TypeClassFactory {
         private final ProcessorContext context;
         private final TypeSystemData typeSystem;
 
-        public TypeClassFactory(ProcessorContext context, TypeSystemData typeSystem) {
+        TypeClassFactory(ProcessorContext context, TypeSystemData typeSystem) {
             this.context = context;
             this.typeSystem = typeSystem;
         }
diff --git a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/model/CodeElement.java b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/model/CodeElement.java
index cec17c7a36ee..fe2ccafb152a 100644
--- a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/model/CodeElement.java
+++ b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/model/CodeElement.java
@@ -174,7 +174,7 @@ public String toString() {
 
     private static class StringBuilderCodeWriter extends AbstractCodeWriter {
 
-        public StringBuilderCodeWriter() {
+        StringBuilderCodeWriter() {
             this.writer = new CharArrayWriter();
         }
 
@@ -194,7 +194,7 @@ private static class ParentableList implements List {
         private final Element parent;
         private final List delegate;
 
-        public ParentableList(Element parent, List delegate) {
+        ParentableList(Element parent, List delegate) {
             this.parent = parent;
             this.delegate = delegate;
         }
diff --git a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/model/CodeNames.java b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/model/CodeNames.java
index d9c803321de9..34ec69433c95 100644
--- a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/model/CodeNames.java
+++ b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/model/CodeNames.java
@@ -43,7 +43,7 @@ private static class NameImpl implements Name {
 
         private final String name;
 
-        public NameImpl(String name) {
+        NameImpl(String name) {
             this.name = name;
         }
 
diff --git a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/model/CodeTreeBuilder.java b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/model/CodeTreeBuilder.java
index 75282735132a..b7d93b41e5bb 100644
--- a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/model/CodeTreeBuilder.java
+++ b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/model/CodeTreeBuilder.java
@@ -738,7 +738,7 @@ private static class BuilderCodeTree extends CodeTree {
         private EndCallback atEndListener;
         private CodeTreeKind removeLast;
 
-        public BuilderCodeTree(CodeTree parent, CodeTreeKind kind, TypeMirror type, String string) {
+        BuilderCodeTree(CodeTree parent, CodeTreeKind kind, TypeMirror type, String string) {
             super(parent, kind, type, string);
         }
 
@@ -766,7 +766,7 @@ private static class CompoundCallback implements EndCallback {
             private final EndCallback callback1;
             private final EndCallback callback2;
 
-            public CompoundCallback(EndCallback callback1, EndCallback callback2) {
+            CompoundCallback(EndCallback callback1, EndCallback callback2) {
                 this.callback1 = callback1;
                 this.callback2 = callback2;
             }
diff --git a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/transform/AbstractCodeWriter.java b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/transform/AbstractCodeWriter.java
index 3cd5dc7d1ebc..5e2fa81f4949 100644
--- a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/transform/AbstractCodeWriter.java
+++ b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/transform/AbstractCodeWriter.java
@@ -372,7 +372,7 @@ private class AnnotationValueWriterVisitor extends AbstractAnnotationValueVisito
 
         private final Element enclosedElement;
 
-        public AnnotationValueWriterVisitor(Element enclosedElement) {
+        AnnotationValueWriterVisitor(Element enclosedElement) {
             this.enclosedElement = enclosedElement;
         }
 
@@ -741,7 +741,7 @@ private static class TrimTrailingSpaceWriter extends Writer {
         private final Writer delegate;
         private final StringBuilder buffer = new StringBuilder();
 
-        public TrimTrailingSpaceWriter(Writer delegate) {
+        TrimTrailingSpaceWriter(Writer delegate) {
             this.delegate = delegate;
         }
 
diff --git a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/transform/OrganizedImports.java b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/transform/OrganizedImports.java
index 0bee476eaba8..05f85d724142 100644
--- a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/transform/OrganizedImports.java
+++ b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/transform/OrganizedImports.java
@@ -303,7 +303,7 @@ private class AnnotationValueReferenceVisitor extends AbstractAnnotationValueVis
 
             private final Element enclosingElement;
 
-            public AnnotationValueReferenceVisitor(Element enclosedElement) {
+            AnnotationValueReferenceVisitor(Element enclosedElement) {
                 this.enclosingElement = enclosedElement;
             }
 
diff --git a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/TypeCastParser.java b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/TypeCastParser.java
index 9286ec4fbc5f..266498cdea66 100644
--- a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/TypeCastParser.java
+++ b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/TypeCastParser.java
@@ -37,7 +37,7 @@
 
 class TypeCastParser extends TypeSystemMethodParser {
 
-    public TypeCastParser(ProcessorContext context, TypeSystemData typeSystem) {
+    TypeCastParser(ProcessorContext context, TypeSystemData typeSystem) {
         super(context, typeSystem);
     }
 
diff --git a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/TypeCheckParser.java b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/TypeCheckParser.java
index aebd725b9805..459f914ddd84 100644
--- a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/TypeCheckParser.java
+++ b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/TypeCheckParser.java
@@ -36,7 +36,7 @@
 
 class TypeCheckParser extends TypeSystemMethodParser {
 
-    public TypeCheckParser(ProcessorContext context, TypeSystemData typeSystem) {
+    TypeCheckParser(ProcessorContext context, TypeSystemData typeSystem) {
         super(context, typeSystem);
     }
 
diff --git a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/TypeSystemMethodParser.java b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/TypeSystemMethodParser.java
index 144d5cac408d..4db1c9eef9d8 100644
--- a/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/TypeSystemMethodParser.java
+++ b/truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/TypeSystemMethodParser.java
@@ -32,7 +32,7 @@
 
 abstract class TypeSystemMethodParser extends TemplateMethodParser {
 
-    public TypeSystemMethodParser(ProcessorContext context, TypeSystemData typeSystem) {
+    TypeSystemMethodParser(ProcessorContext context, TypeSystemData typeSystem) {
         super(context, typeSystem);
     }
 
diff --git a/truffle/com.oracle.truffle.object/src/com/oracle/truffle/object/ConsListPropertyMap.java b/truffle/com.oracle.truffle.object/src/com/oracle/truffle/object/ConsListPropertyMap.java
index 049078031856..6359d502c19f 100644
--- a/truffle/com.oracle.truffle.object/src/com/oracle/truffle/object/ConsListPropertyMap.java
+++ b/truffle/com.oracle.truffle.object/src/com/oracle/truffle/object/ConsListPropertyMap.java
@@ -284,7 +284,7 @@ public int size() {
     private static final class MapEntryImpl implements Map.Entry {
         private final Property backingProperty;
 
-        public MapEntryImpl(Property backingProperty) {
+        MapEntryImpl(Property backingProperty) {
             this.backingProperty = backingProperty;
         }
 
diff --git a/truffle/com.oracle.truffle.object/src/com/oracle/truffle/object/debug/ShapeProfiler.java b/truffle/com.oracle.truffle.object/src/com/oracle/truffle/object/debug/ShapeProfiler.java
index 4ebec3ce1123..e925704f403a 100644
--- a/truffle/com.oracle.truffle.object/src/com/oracle/truffle/object/debug/ShapeProfiler.java
+++ b/truffle/com.oracle.truffle.object/src/com/oracle/truffle/object/debug/ShapeProfiler.java
@@ -107,7 +107,7 @@ private static class ShapeStats {
         private long pas;
         private long pfs;
 
-        public ShapeStats(String label) {
+        ShapeStats(String label) {
             this.label = label;
         }
 
diff --git a/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/parser/SLNodeFactory.java b/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/parser/SLNodeFactory.java
index b9580f7d1ef1..f9247c575ff6 100644
--- a/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/parser/SLNodeFactory.java
+++ b/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/parser/SLNodeFactory.java
@@ -105,7 +105,7 @@ static class LexicalScope {
         protected final LexicalScope outer;
         protected final Map locals;
 
-        public LexicalScope(LexicalScope outer) {
+        LexicalScope(LexicalScope outer) {
             this.outer = outer;
             this.locals = new HashMap<>();
             if (outer != null) {
diff --git a/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLFunctionForeignAccess.java b/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLFunctionForeignAccess.java
index 112cd1a065b9..0f9874f93ed1 100644
--- a/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLFunctionForeignAccess.java
+++ b/truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/runtime/SLFunctionForeignAccess.java
@@ -90,7 +90,7 @@ public CallTarget accessMessage(Message tree) {
     private static class SLForeignCallerRootNode extends RootNode {
         @Child private SLDispatchNode dispatch = SLDispatchNodeGen.create();
 
-        public SLForeignCallerRootNode() {
+        SLForeignCallerRootNode() {
             super(SLLanguage.class, null, null);
         }
 
@@ -108,7 +108,7 @@ public Object execute(VirtualFrame frame) {
     }
 
     private static class SLForeignNullCheckNode extends RootNode {
-        public SLForeignNullCheckNode() {
+        SLForeignNullCheckNode() {
             super(SLLanguage.class, null, null);
         }
 
@@ -120,7 +120,7 @@ public Object execute(VirtualFrame frame) {
     }
 
     private static class SLForeignExecutableCheckNode extends RootNode {
-        public SLForeignExecutableCheckNode() {
+        SLForeignExecutableCheckNode() {
             super(SLLanguage.class, null, null);
         }
 

From 2d40d9bf5d0ea031dda6040b5c3d8b41c96cafd0 Mon Sep 17 00:00:00 2001
From: Stefan Marr 
Date: Sat, 30 Jan 2016 01:08:58 +0100
Subject: [PATCH 2/3] Fix checkstyle issue with redundany private keyword

Signed-off-by: Stefan Marr 
---
 .../truffle/api/instrument/InstrumentationTestingLanguage.java  | 2 +-
 .../src/com/oracle/truffle/api/frame/FrameSlotKind.java         | 2 +-
 .../src/com/oracle/truffle/api/instrument/ProbeFailure.java     | 2 +-
 .../com/oracle/truffle/api/instrument/StandardSyntaxTag.java    | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/instrument/InstrumentationTestingLanguage.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/instrument/InstrumentationTestingLanguage.java
index 39f272d8b95e..10a808bc163e 100644
--- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/instrument/InstrumentationTestingLanguage.java
+++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/instrument/InstrumentationTestingLanguage.java
@@ -66,7 +66,7 @@ static enum InstrumentTestTag implements SyntaxTag {
         private final String name;
         private final String description;
 
-        private InstrumentTestTag(String name, String description) {
+        InstrumentTestTag(String name, String description) {
             this.name = name;
             this.description = description;
         }
diff --git a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameSlotKind.java b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameSlotKind.java
index 41d5b2ba0d3c..b0724be891db 100644
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameSlotKind.java
+++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameSlotKind.java
@@ -36,7 +36,7 @@ public enum FrameSlotKind {
 
     public final byte tag;
 
-    private FrameSlotKind() {
+    FrameSlotKind() {
         this.tag = (byte) ordinal();
     }
 }
diff --git a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/ProbeFailure.java b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/ProbeFailure.java
index 36ca60487f20..1b3e40f306b8 100644
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/ProbeFailure.java
+++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/ProbeFailure.java
@@ -62,7 +62,7 @@ public enum Reason {
 
         final String message;
 
-        private Reason(String message) {
+        Reason(String message) {
             this.message = message;
         }
 
diff --git a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/StandardSyntaxTag.java b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/StandardSyntaxTag.java
index 562238c23bca..588b640f455d 100644
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/StandardSyntaxTag.java
+++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/instrument/StandardSyntaxTag.java
@@ -75,7 +75,7 @@ public enum StandardSyntaxTag implements SyntaxTag {
     private final String name;
     private final String description;
 
-    private StandardSyntaxTag(String name, String description) {
+    StandardSyntaxTag(String name, String description) {
         this.name = name;
         this.description = description;
     }

From 5c864140b5bd2d55c4ec915c7d590acb2b30ebfb Mon Sep 17 00:00:00 2001
From: Stefan Marr 
Date: Sat, 30 Jan 2016 01:09:20 +0100
Subject: [PATCH 3/3] Fix checkstyle issue: enums are implicitly static

Signed-off-by: Stefan Marr 
---
 .../truffle/api/instrument/InstrumentationTestingLanguage.java  | 2 +-
 .../src/com/oracle/truffle/api/frame/FrameInstance.java         | 2 +-
 .../src/com/oracle/truffle/api/nodes/NodeFieldAccessor.java     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/instrument/InstrumentationTestingLanguage.java b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/instrument/InstrumentationTestingLanguage.java
index 10a808bc163e..190aa00a8e22 100644
--- a/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/instrument/InstrumentationTestingLanguage.java
+++ b/truffle/com.oracle.truffle.api.test/src/com/oracle/truffle/api/instrument/InstrumentationTestingLanguage.java
@@ -57,7 +57,7 @@ static Source createConstantSource42(String testName) {
         return Source.fromText(CONSTANT_SOURCE_TEXT, testName).withMimeType("text/x-instTest");
     }
 
-    static enum InstrumentTestTag implements SyntaxTag {
+    enum InstrumentTestTag implements SyntaxTag {
 
         ADD_TAG("addition", "test language addition node"),
 
diff --git a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameInstance.java b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameInstance.java
index 6d47fb26b967..b8cab6342242 100644
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameInstance.java
+++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/FrameInstance.java
@@ -29,7 +29,7 @@
 
 public interface FrameInstance {
 
-    public static enum FrameAccess {
+    enum FrameAccess {
         NONE,
         READ_ONLY,
         READ_WRITE,
diff --git a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeFieldAccessor.java b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeFieldAccessor.java
index f83ba438b4f7..1a9036beed50 100644
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeFieldAccessor.java
+++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeFieldAccessor.java
@@ -36,7 +36,7 @@
  */
 public abstract class NodeFieldAccessor {
 
-    public static enum NodeFieldKind {
+    public enum NodeFieldKind {
         /** The reference to the {@link NodeClass}. */
         NODE_CLASS,
         /** The single {@link Node#getParent() parent} field. */