repo stringlengths 1 191 ⌀ | file stringlengths 23 351 | code stringlengths 0 5.32M | file_length int64 0 5.32M | avg_line_length float64 0 2.9k | max_line_length int64 0 288k | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java10/LocalVariableTypeInferenceForLoop.java | public class LocalVariableTypeInferenceForLoop {
public void aMethod() {
for (var i = 1; i < 10; i++) {
System.out.println(i);
}
}
} | 169 | 20.25 | 48 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java15/NonSealedIdentifier.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
public class NonSealedIdentifier {
public static void main(String[] args) {
int result = 0;
int non = 1;
// sealed is a valid identifier name in both Java15 and Java15 Preview
int sealed = 2;
... | 479 | 29 | 89 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java15/TextBlocks.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
/**
* Text Blocks are a permanent language feature with JDK 15.
*
* @see <a href="https://openjdk.java.net/jeps/378>JEP 378: Text Blocks</a>
*/
public c... | 3,564 | 28.708333 | 79 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java9/jdk9_module_info_with_annot.java | /*
* See §7.7 Module Declarations in JLS
*/
@Deprecated(since = "11", forRemoval = true)
module jdk.pack {
}
| 111 | 15 | 44 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java9/jdk9_private_interface_methods.java | /**
* With java9, private methods are allowed in interface.
*/
public class Java9Interface {
public interface Tool {
void use();
default String getName() {
return determineName();
}
default String getStaticName() {
return determineNameStatic();
}
... | 1,010 | 23.658537 | 85 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java9/jdk9_try_with_resources.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
public class InputJava9TryWithResources {
public static void main() {
MyResource resource1 = new MyResource();
MyResource resource2 = new MyResource();
try (resource1) { }
try (resource1;) { }
try (resource1; resource2) {... | 467 | 23.631579 | 79 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java9/jdk9_module_info.java | /*
* See §7.7 Module Declarations in JLS
*/
open module com.example.foo {
requires com.example.foo.http;
requires java.logging;
requires transitive com.example.foo.network;
exports com.example.foo.bar;
exports com.example.foo.internal to com.example.foo.probe;
uses com.example.foo.spi.Intf;
... | 477 | 27.117647 | 88 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java9/jdk9_invalid_identifier.java | /**
* Using "_" as an identifier is not allowed anymore with java9.
*/
public class Java9Identifier {
/*
* see https://bugs.openjdk.java.net/browse/JDK-8061549
*/
public interface Lambda {
public int a(int _);
public default void t(Lambda l) {
t(_ -> 0);
}
}
... | 322 | 19.1875 | 64 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java9/jdk9_anonymous_diamond.java | import java.util.HashSet;
import java.util.Set;
public class Java9AnonymousDiamond {
public static void main(String... args) {
Set<String> set = new HashSet<>() { };
}
} | 186 | 22.375 | 46 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java19p/PatternsInSwitchLabels.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/427">JEP 427: Pattern Matching for switch (Third Preview)</a>
*/
public class PatternsInSwitchLabels {
public static void main(String[] args) {
Object o = 123L;
St... | 691 | 29.086957 | 103 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java19p/GuardedAndParenthesizedPatterns.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/427">JEP 427: Pattern Matching for switch (Third Preview)</a>
*/
public class GuardedAndParenthesizedPatterns {
static void test(Object o) {
switch (o) {
case ... | 3,252 | 39.160494 | 121 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java19p/ExhaustiveSwitch.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/427">JEP 427: Pattern Matching for switch (Third Preview)</a>
*/
public class ExhaustiveSwitch {
static int coverage(Object o) {
return switch (o) {
case String... | 2,739 | 27.842105 | 103 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java19p/RecordPatterns.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/405">JEP 405: Record Patterns (Preview)</a>
*/
public class RecordPatterns {
record Point(int x, int y) {}
enum Color { RED, GREEN, BLUE }
record ColoredPoint(Point p, Colo... | 1,804 | 27.203125 | 85 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java19p/RefiningPatternsInSwitch.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/427">JEP 427: Pattern Matching for switch (Third Preview)</a>
*/
public class RefiningPatternsInSwitch {
static class Shape {}
static class Rectangle extends Shape {}
stati... | 2,048 | 27.458333 | 103 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java19p/DealingWithNull.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/427">JEP 427: Pattern Matching for switch (Third Preview)</a>
*/
public class DealingWithNull {
static void testFooBar(String s) {
switch (s) {
case null ... | 2,466 | 26.10989 | 103 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java19p/EnhancedTypeCheckingSwitch.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/427">JEP 427: Pattern Matching for switch (Third Preview)</a>
*/
public class EnhancedTypeCheckingSwitch {
static void typeTester(Object o) {
switch (o) {
case... | 937 | 30.266667 | 103 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java19p/ScopeOfPatternVariableDeclarations.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/427">JEP 427: Pattern Matching for switch (Third Preview)</a>
*/
public class ScopeOfPatternVariableDeclarations {
static void test(Object o) {
switch (o) {
ca... | 1,241 | 24.346939 | 103 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java8/type_annotations.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
// From https://github.com/checkstyle/checkstyle/blob/checkstyle-9.1/src/it/resources/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/InputNoWhitespaceBeforeAnnotations.java
// and https://github.com/checks... | 3,653 | 46.454545 | 215 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java17/SealedInnerClasses.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
public class SealedInnerClasses {
sealed class Square implements Squircle {
non-sealed private class OtherSquare extends Square {}
static non-sealed class StaticClass implements Squircle {}
}
sealed inte... | 375 | 27.923077 | 79 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java17/LocalVars.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
public class LocalVars {
public void aMethod() {
String sealed = null;
sealed = this.getClass().getName();
// error: sealed or non-sealed local classes are not allowed
// sealed class Local... | 343 | 20.5 | 79 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java17/expression/TimesExpr.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package com.example.expression;
/**
* @see <a href="https://openjdk.java.net/jeps/409">JEP 409: Sealed Classes</a>
*/
public final class TimesExpr implements Expr { }
| 260 | 25.1 | 79 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java17/expression/Expr.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package com.example.expression;
/**
* @see <a href="https://openjdk.java.net/jeps/409">JEP 409: Sealed Classes</a>
*/
public sealed interface Expr
permits ConstantExpr, PlusExpr, TimesExpr, NegExpr { }
| 296 | 26 | 79 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java17/expression/ConstantExpr.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package com.example.expression;
/**
* @see <a href="https://openjdk.java.net/jeps/409">JEP 409: Sealed Classes</a>
*/
public final class ConstantExpr implements Expr { }
| 260 | 25.1 | 79 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java17/expression/PlusExpr.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package com.example.expression;
/**
* @see <a href="https://openjdk.java.net/jeps/409">JEP 409: Sealed Classes</a>
*/
public final class PlusExpr implements Expr { }
| 260 | 25.1 | 79 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java17/expression/NegExpr.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package com.example.expression;
/**
* @see <a href="https://openjdk.java.net/jeps/409">JEP 409: Sealed Classes</a>
*/
public final class NegExpr implements Expr { }
| 260 | 25.1 | 79 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java17/geometry/Rectangle.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package com.example.geometry;
/**
* @see <a href="https://openjdk.java.net/jeps/409">JEP 409: Sealed Classes</a>
*/
public sealed class Rectangle extends Shape
permits TransparentRectangle, FilledRectangle { }
| 306 | 24.583333 | 79 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java17/geometry/Shape.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package com.example.geometry;
/**
* @see <a href="https://openjdk.java.net/jeps/409">JEP 409: Sealed Classes</a>
*/
public sealed class Shape
permits Circle, Rectangle, Square { }
| 275 | 22 | 79 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java17/geometry/Square.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package com.example.geometry;
/**
* @see <a href="https://openjdk.java.net/jeps/409">JEP 409: Sealed Classes</a>
*/
public non-sealed class Square extends Shape { }
| 256 | 22.363636 | 79 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java17/geometry/FilledRectangle.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package com.example.geometry;
/**
* @see <a href="https://openjdk.java.net/jeps/409">JEP 409: Sealed Classes</a>
*/
public final class FilledRectangle extends Rectangle { }
| 264 | 23.090909 | 79 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java17/geometry/TransparentRectangle.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package com.example.geometry;
/**
* @see <a href="https://openjdk.java.net/jeps/409">JEP 409: Sealed Classes</a>
*/
public final class TransparentRectangle extends Rectangle { }
| 269 | 23.545455 | 79 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java17/geometry/Circle.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package com.example.geometry;
/**
* @see <a href="https://openjdk.java.net/jeps/409">JEP 409: Sealed Classes</a>
*/
public final class Circle extends Shape { }
| 250 | 24.1 | 79 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java5/generic_super_ctor.java | // From https://github.com/checkstyle/checkstyle/blob/checkstyle-9.1/src/test/resources/com/puppycrawl/tools/checkstyle/grammar/InputRegressionJavaClass2.java
class c4<A,B> {
class c4a {}
public c4() { <String>super(); }
}
class c5 extends c4.c4a {
c5() { new c4().super(); }
c5(int a) { new c4().<Strin... | 335 | 29.545455 | 158 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java5/generic_ctors.java |
// From https://github.com/checkstyle/checkstyle/blob/checkstyle-9.1/src/test/resources/com/puppycrawl/tools/checkstyle/checks/whitespace/genericwhitespace/InputGenericWhitespaceDefault.java
// and https://github.com/checkstyle/checkstyle/blob/checkstyle-9.1/src/test/resources/com/puppycrawl/tools/checkstyle/grammar/a... | 857 | 41.9 | 190 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java5/annotation_array_init.java | // From https://github.com/checkstyle/checkstyle/blob/checkstyle-9.1/src/test/resources/com/puppycrawl/tools/checkstyle/grammar/antlr4/InputAntlr4AstRegressionSingleCommaInArrayInit.java
class AnnotationCommaArrayInit {
@Foo({,}) void b() { }
@interface Foo { int[] value(); }
}
| 287 | 47 | 186 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java14/SwitchExpressions.java | /**
* @see <a href="https://openjdk.java.net/jeps/361">JEP 361: Switch Expressions (Standard)</a>
*/
public class SwitchExpressions {
private enum Day {
MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY;
}
public static final int BAZ = 3;
public static void main(String[] args) {... | 2,487 | 26.644444 | 94 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java14/YieldStatements.java | /**
* @see <a href="https://openjdk.java.net/jeps/361">JEP 361: Switch Expressions (Standard)</a>
*/
public class YieldStatements {
{
int yield = 0;
yield = 2; // should be an assignment
yield (2); // should be a method call
yield(a,b); // should be a method call
yield =... | 1,264 | 34.138889 | 95 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java14/SimpleSwitchExpressions.java | /**
*
* @see <a href="https://openjdk.java.net/jeps/325">JEP 325: Switch Expressions (Preview)</a>
*/
public class SimpleSwitchExpressions {
private static final int MONDAY = 1;
private static final int TUESDAY = 2;
private static final int WEDNESDAY = 3;
private static final int THURSDAY = 4;
pr... | 1,113 | 29.944444 | 93 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java14/SwitchRules.java | /**
*
* @see <a href="https://openjdk.java.net/jeps/325">JEP 325: Switch Expressions (Preview)</a>
*/
public class SwitchRules {
private static final int MONDAY = 1;
private static final int TUESDAY = 2;
private static final int WEDNESDAY = 3;
private static final int THURSDAY = 4;
private static... | 899 | 33.615385 | 93 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java14/TextBlocks.java | import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
/**
* @see <a href="https://openjdk.java.net/jeps/368">JEP 368: Text Blocks (Second Preview)</a>
*/
public class TextBlocks {
public static void main(String[] args) throws Exception {
// note: there is trailing whitespace!!
... | 3,430 | 29.096491 | 93 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java14/MultipleCaseLabels.java | /**
*
* @see <a href="https://openjdk.java.net/jeps/325">JEP 325: Switch Expressions (Preview)</a>
*/
public class MultipleCaseLabels {
private static final int MONDAY = 1;
private static final int TUESDAY = 2;
private static final int WEDNESDAY = 3;
private static final int THURSDAY = 4;
private... | 851 | 31.769231 | 93 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java20p/PatternsInSwitchLabels.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/433">JEP 433: Pattern Matching for switch (Fourth Preview)</a>
*/
public class PatternsInSwitchLabels {
public static void main(String[] args) {
Object o = 123L;
S... | 692 | 29.130435 | 104 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java20p/RecordPatternsInEnhancedFor.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/432">JEP 432: Record Patterns (Second Preview)</a>
*/
public class RecordPatternsInEnhancedFor {
record Point(int x, int y) {}
enum Color { RED, GREEN, BLUE }
record Colored... | 1,353 | 29.772727 | 92 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java20p/GuardedAndParenthesizedPatterns.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/433">JEP 433: Pattern Matching for switch (Fourth Preview)</a>
*/
public class GuardedAndParenthesizedPatterns {
static void test(Object o) {
switch (o) {
case... | 3,719 | 39.879121 | 121 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java20p/ExhaustiveSwitch.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/433">JEP 433: Pattern Matching for switch (Fourth Preview)</a>
*/
public class ExhaustiveSwitch {
static int coverage(Object o) {
return switch (o) {
case Strin... | 2,542 | 27.897727 | 104 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java20p/RecordPatterns.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/432">JEP 432: Record Patterns (Second Preview)</a>
*/
public class RecordPatterns {
record Point(int x, int y) {}
enum Color { RED, GREEN, BLUE }
record ColoredPoint(Point ... | 2,910 | 27.821782 | 92 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java20p/RefiningPatternsInSwitch.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/433">JEP 433: Pattern Matching for switch (Fourth Preview)</a>
*/
public class RefiningPatternsInSwitch {
static class Shape {}
static class Rectangle extends Shape {}
stat... | 2,176 | 26.910256 | 104 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java20p/DealingWithNull.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/433">JEP 433: Pattern Matching for switch (Fourth Preview)</a>
*/
public class DealingWithNull {
static void testFooBar(String s) {
switch (s) {
case null ... | 2,764 | 28.414894 | 120 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java20p/RecordPatternsExhaustiveSwitch.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/432">JEP 432: Record Patterns (Second Preview)</a>
*/
public class RecordPatternsExhaustiveSwitch {
class A {}
class B extends A {}
sealed interface I permits C, D {}
fi... | 1,184 | 30.184211 | 113 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java20p/EnhancedTypeCheckingSwitch.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/433">JEP 433: Pattern Matching for switch (Fourth Preview)</a>
*/
public class EnhancedTypeCheckingSwitch {
static void typeTester(Object o) {
switch (o) {
cas... | 1,134 | 27.375 | 104 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/ast/jdkversiontests/java20p/ScopeOfPatternVariableDeclarations.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* @see <a href="https://openjdk.org/jeps/433">JEP 433: Pattern Matching for switch (Fourth Preview)</a>
*/
public class ScopeOfPatternVariableDeclarations {
static void testSwitchBlock(Object obj) {
switch (obj) {... | 1,727 | 25.584615 | 104 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/cpd/testdata/tabWidth.java | class tabWidth {
int i = 0;
}
| 31 | 7 | 16 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/cpd/testdata/ignoreIdentsPreservesClassLiteral.java | package foo.bar.baz;
public class Foo {
Foo() {
}
public void bar() {
Bar.baz(Foo.class, () -> {});
}
}
| 129 | 12 | 37 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/cpd/testdata/ignoreSpecialAnnotations.java | package foo.bar.baz;
@SuppressWarnings({"woof","CPD-START"})
@SuppressWarnings("CPD-START")
@ MyAnnotation ("ugh")
@NamedQueries({
@NamedQuery(
)})
public class Foo {}
@SuppressWarnings({"ugh","CPD-END"})
class Other {}
| 259 | 17.571429 | 39 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/cpd/testdata/ignoreLiterals.java | public class Foo {
public void bar() {
System.out.println("hello");
System.out.println("hello");
int i = 5;
System.out.print("hello");
}
} | 179 | 19 | 36 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/cpd/testdata/simpleClassWithComments.java | /*
* This comment is ignored too
*/
public class Foo { // class Bar
// comments are ignored
} | 100 | 13.428571 | 31 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/cpd/testdata/ignoreIdentsPreservesEnum.java | package foo.bar.baz;
public enum Foo {
BAR(1),
BAZ(2);
Foo(int val) {
}
}
| 91 | 9.222222 | 20 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/cpd/testdata/specialComments.java | package foo.bar.baz;
// CPD-OFF
// CPD-OFF
// another irrelevant comment
@ MyAnnotation ("ugh")
@NamedQueries({
@NamedQuery(
)})
public class Foo {// CPD-ON
// special multiline comments
class Foo /* CPD-OFF */{ } /* CPD-ON */
class Foo /* CPD-OFF */{
{something();}
} /* CPD-ON *... | 330 | 11.730769 | 43 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/cpd/testdata/discardedElements.java | /*
* This comment is ignored
*/
package a.b.c; // ignored
// imports are ignored
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import java.util.List;
import java.util.Properties;
@Foo // ignored
public class Foo { // class Bar
// comments are ignored
// semicolons are ignored... | 595 | 15.555556 | 44 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/cpd/testdata/ignoreIdentsPreservesCtor.java | package foo.bar.baz;
public class Foo extends Bar {
private Foo notAConstructor;
public Foo(int i) { super(i); }
private Foo(int i, String s) { super(i, s); }
/* default */ Foo(int i, String s, Object o) { super(i, s, o); }
private static class Inner {
Inner() { System.out.println("Gue... | 342 | 18.055556 | 68 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/types/IteratorUtilCopy.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.L... | 13,622 | 26.521212 | 149 | java |
pmd | pmd-master/pmd-java/src/test/resources/net/sourceforge/pmd/ast/FullTypeAnnotations.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
import java.io.File;
import java.util.function.Supplier;
import org.checkerframework.checker.nullness.qual.NonNull;
/**
* Type annotation syntax.
*
* See https://checkerframework.org/jsr308/java-annotation-design.html
* for p... | 4,195 | 31.78125 | 116 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/JavaLanguageModule.java | /**
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java;
import static net.sourceforge.pmd.util.CollectionUtil.listOf;
import java.util.List;
import net.sourceforge.pmd.annotation.InternalApi;
import net.sourceforge.pmd.lang.Language;
import net.... | 2,543 | 35.869565 | 90 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/JAccessibleElementSymbol.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import java.lang.reflect.Modifier;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/**
* Represents declarati... | 1,944 | 28.029851 | 101 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/package-info.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
/**
* Prototype of a new symbol resolution framework
* that inter-operates cleanly with type resolution.
*
* @see net.sourceforge.pmd.lang.java.symbols.JElementSymbol
* @see net.sourceforge.pmd.lang.java.symbols.table.JSymbolTa... | 504 | 27.055556 | 79 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/JLocalVariableSymbol.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import net.sourceforge.pmd.lang.java.ast.ASTVariableDeclaratorId;
/**
* Represents all use cases of {@link ASTVariableDeclaratorId} except field declarations.
* Method formal para... | 590 | 23.625 | 89 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/JTypeParameterSymbol.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import java.lang.reflect.Modifier;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.lang.java.ast.ASTTypeParameter;
import net.sourceforge.pmd.l... | 1,892 | 26.838235 | 114 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/AnnotWrapper.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import java.lang.annotation.Annotation;
import java.util.Arrays;
import java.util.Objects;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.check... | 2,721 | 31.404762 | 100 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/SymbolResolver.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import static net.sourceforge.pmd.util.CollectionUtil.listOf;
import java.util.List;
import org.apache.commons.lang3.ArrayUtils;
import org.checkerframework.checker.nullness.qual.Non... | 3,046 | 33.625 | 103 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/JConstructorSymbol.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import net.sourceforge.pmd.lang.java.ast.ASTConstructorDeclaration;
/**
* Represents a constructor declaration.
*
* @since 7.0.0
*/
public interface JConstructorSymbol extends J... | 775 | 21.171429 | 103 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/BoundToNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import org.checkerframework.checker.nullness.qual.Nullable;
import net.sourceforge.pmd.lang.java.ast.JavaNode;
/**
* Constrains the return type of getDeclaration. This is used to ... | 686 | 22.689655 | 79 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/JFormalParamSymbol.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
/**
* Represents a formal parameter of a {@link JExecutableSymbol}.
*
* @since 7.0.0
*/
public interface JFormalParamSymbol extends JLocalVariableSymbol {
/** Returns the sym... | 545 | 21.75 | 79 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/JFieldSymbol.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import java.lang.reflect.Modifier;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
/**
* Represents a field d... | 1,250 | 20.20339 | 87 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/JTypeDeclSymbol.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.lang.java.types.JTypeMirror;
/**
* A symbol that declares a type. These include
* <ul>
* ... | 2,472 | 31.973333 | 91 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/JExecutableSymbol.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.List;
import org.checkerframework.checker.nullness.qual.NonN... | 3,555 | 30.192982 | 108 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/JElementSymbol.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import net.sourceforge.pmd.annotation.Experimental;
import net.... | 4,403 | 32.618321 | 123 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/JClassSymbol.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.refle... | 10,715 | 32.176471 | 100 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/JTypeParameterOwnerSymbol.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import java.util.List;
import org.checkerframework.checker.nullness.qual.Nullable;
import net.sourceforge.pmd.lang.java.types.JTypeVar;
import net.sourceforge.pmd.lang.java.types.Le... | 1,925 | 27.746269 | 87 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/SymbolVisitor.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
/**
* Visitor over symbols.
*/
public interface SymbolVisitor<R, P> {
R visitSymbol(JElementSymbol sym, P p);
default R visitTypeDecl(JTypeDeclSymbol sym, P param) {
... | 2,165 | 29.942857 | 92 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/AnnotableSymbol.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import java.lang.annotation.Annotation;
import org.pcollections.HashTreePSet;
import org.pcollections.PSet;
import net.sourceforge.pmd.lang.java.symbols.SymbolicValue.SymAnnot;
/**
... | 1,446 | 27.372549 | 92 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/JVariableSymbol.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import net.sourceforge.pmd.lang.java.ast.ASTVariableDeclaratorId;
import net.sourceforge.pmd.lang.java.types.JTypeMirror;
import net.sourceforge.pmd.lang.java.types.Substitution;
/*... | 1,046 | 25.175 | 96 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/JMethodSymbol.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import java.lang.reflect.Modifier;
import org.checkerframework.checker.nullness.qual.Nullable;
import net.sourceforge.pmd.lang.java.ast.ASTMethodDeclaration;
import net.sourceforge.... | 1,580 | 24.918033 | 93 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/SymbolicValue.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
import java.lang.annotation.Annotation;
import java.lang.annotation.RetentionPolicy;
import java.lang.reflect.Array;
import java.lang.reflect.InvocationTargetException;
import java.uti... | 19,717 | 33.532399 | 114 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/SymbolicValueHelper.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols;
/**
* Private helper for {@link SymbolicValue} and implementations.
*
* @author Clément Fournier
*/
final class SymbolicValueHelper {
private SymbolicValueHelper() {
/... | 577 | 20.407407 | 79 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/JSymbolTable.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table;
import net.sourceforge.pmd.annotation.Experimental;
import net.sourceforge.pmd.lang.java.ast.ASTClassOrInterfaceType;
import net.sourceforge.pmd.lang.java.ast.ASTVariableAccess;
... | 2,823 | 37.162162 | 92 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/ScopeInfo.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table;
import net.sourceforge.pmd.lang.java.symbols.table.coreimpl.ShadowChainIterator;
/**
* A {@linkplain ShadowChainIterator#getScopeTag() scope tag} for java
* shadow chains. Thi... | 1,156 | 27.219512 | 82 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/coreimpl/CoreResolvers.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table.coreimpl;
import static java.util.Collections.emptyList;
import static java.util.Collections.singletonList;
import java.util.List;
import java.util.Map;
import org.checkerframew... | 4,442 | 26.596273 | 92 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/coreimpl/ShadowChainIteratorImpl.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table.coreimpl;
import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import net.sourceforge.p... | 2,645 | 30.5 | 116 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/coreimpl/ShadowChainNodeBase.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table.coreimpl;
import java.util.List;
import java.util.function.BinaryOperator;
import org.checkerframework.checker.nullness.qual.NonNull;
import net.sourceforge.pmd.util.CollectionU... | 4,024 | 29.725191 | 126 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/coreimpl/ShadowChainNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table.coreimpl;
import java.util.List;
import org.checkerframework.checker.nullness.qual.Nullable;
import net.sourceforge.pmd.util.OptionalBool;
/**
* A {@link ShadowChain} viewed a... | 1,423 | 23.135593 | 79 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/coreimpl/ShadowChainBuilder.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table.coreimpl;
import static net.sourceforge.pmd.lang.java.symbols.table.coreimpl.CoreResolvers.multimapResolver;
import static net.sourceforge.pmd.lang.java.symbols.table.coreimpl.Co... | 8,387 | 39.521739 | 184 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/coreimpl/MostlySingularMultimap.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table.coreimpl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util... | 8,198 | 28.492806 | 109 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/coreimpl/NameResolver.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table.coreimpl;
import java.util.Collections;
import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullab... | 4,110 | 30.381679 | 95 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/coreimpl/ShadowChainIterator.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table.coreimpl;
import java.util.Iterator;
import java.util.List;
/**
* Iterates up a {@link ShadowChain} chain to find a given name. This
* can be used to find all shadowed declarat... | 1,529 | 29.6 | 84 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/coreimpl/CachingShadowChainNode.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table.coreimpl;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.BinaryOperator;
import org.checkerframewo... | 2,792 | 31.476744 | 94 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/coreimpl/ShadowChainRoot.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table.coreimpl;
import static java.util.Collections.emptyList;
import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nu... | 1,650 | 20.166667 | 87 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/coreimpl/ShadowChain.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table.coreimpl;
import java.util.List;
import org.checkerframework.checker.nullness.qual.NonNull;
/**
* A shadow chain is a linked list of {@link NameResolver}s, which handles
* sha... | 2,743 | 30.906977 | 82 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/internal/JavaResolvers.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table.internal;
import static net.sourceforge.pmd.lang.java.symbols.table.internal.SuperTypesEnumerator.DIRECT_STRICT_SUPERTYPES;
import static net.sourceforge.pmd.lang.java.symbols.tab... | 25,068 | 46.659696 | 183 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/internal/ReferenceCtx.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table.internal;
import static net.sourceforge.pmd.lang.java.symbols.table.internal.JavaSemanticErrors.AMBIGUOUS_NAME_REFERENCE;
import static net.sourceforge.pmd.lang.java.symbols.table... | 7,576 | 38.878947 | 139 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/internal/JavaSemanticErrors.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table.internal;
/**
*
*/
public final class JavaSemanticErrors {
// TODO how strict do we need to be here?
// many rules don't absolutely need correctness to work
// ... | 3,359 | 43.210526 | 159 | java |
pmd | pmd-master/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/symbols/table/internal/SymbolChainBuilder.java | /*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.java.symbols.table.internal;
import net.sourceforge.pmd.lang.java.symbols.JElementSymbol;
import net.sourceforge.pmd.lang.java.symbols.table.ScopeInfo;
import net.sourceforge.pmd.lang.java.symbols.t... | 549 | 29.555556 | 93 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.