From: aclement Date: Sat, 10 Dec 2011 00:51:49 +0000 (+0000) Subject: corrected usage message and added new eclipse 3.7 warn options. X-Git-Tag: V1_7_0RC1~79 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0a812fa86f631e589a6be69890f0f3d0005d930c;p=aspectj.git corrected usage message and added new eclipse 3.7 warn options. --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java index 583a4a773..759cc8034 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/BuildArgParser.java @@ -50,7 +50,7 @@ public class BuildArgParser extends Main { private static boolean LOADED_BUNDLE = false; static { -// Main.bundleName = BUNDLE_NAME; + Main.bundleName = BUNDLE_NAME; ResourceBundleFactory.getBundle(Locale.getDefault()); if (!LOADED_BUNDLE) { LOADED_BUNDLE = true; @@ -258,7 +258,7 @@ public class BuildArgParser extends Main { } public void printUsage() { - System.out.println(bind("misc.usage")); //$NON-NLS-1$ + System.out.println(getUsage()); System.out.flush(); } diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/messages.properties b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/messages.properties index 41fa02343..28f3403c4 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/messages.properties +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/messages.properties @@ -4,8 +4,8 @@ The -Xlintfile:lint.properties allows fine-grained control. In tools.jar, see org/aspectj/weaver/XlintDefault.properties for the default behavior and a template to copy. ### AspectJ-specific messages -compiler.name = AspectJ Compiler 1.6.12 -compiler.version = Eclipse Compiler 0.785_R33x, 3.3 +compiler.name = AspectJ Compiler 1.7.0 +compiler.version = Eclipse Compiler 0.B79_R37x, 3.7 compiler.copyright = ## this next one superceded by above... @@ -60,47 +60,94 @@ Standard Eclipse compiler options:\n\ \ Compliance options:\n\ \ -1.3 use 1.3 compliance level (implicit -source 1.3 -target 1.1)\n\ \ -1.4 + use 1.4 compliance level\n\ -\ -1.5 use 1.5 compliance level\n\ -\ -1.6 use 1.6 compliance level\n\ -\ -source set source level (1.3, 1.4, 1.5 or 1.6)\n\ -\ -target set classfile target (1.1 to 1.4)\n\ +\ -1.5 -5 -5.0 use 1.5 compliance (-source 1.5 -target 1.5)\n\ +\ -1.6 -6 -6.0 use 1.6 compliance (-source 1.6 -target 1.6)\n\ +\ -1.7 -7 -7.0 use 1.7 compliance (-source 1.7 -target 1.7)\n\ +\ -source set source level: 1.3 to 1.7 (or 5, 5.0, etc)\n\ +\ -target set classfile target: 1.1 to 1.7 (or 5, 5.0, etc)\n\ \ \n\ \ Warning options:\n\ -\ -deprecation + deprecation outside deprecated code\n\ -\ -nowarn disable all warnings except xlint or declare warning\n\ -\ -warn:none disable all warnings except xlint or declare warning\n\ +\ -deprecation + deprecation outside deprecated code\n\ +\ -nowarn -warn:none disable all warnings\n\ \ -warn: enable exactly the listed warnings\n\ \ -warn:+ enable additional warnings\n\ \ -warn:- disable specific warnings\n\ +\ allDeadCode dead code including trivial if(DEBUG) check\n\ \ allDeprecation deprecation including inside deprecated code\n\ \ allJavadoc invalid or missing javadoc\n\ +\ allOver-ann all missing @Override annotations\n\ +\ all-static-method all method can be declared as static warnings\n\ \ assertIdentifier + ''assert'' used as identifier\n\ +\ boxing autoboxing conversion\n\ \ charConcat + char[] in String concat\n\ +\ compareIdentical + comparing identical expressions\n\ \ conditionAssign possible accidental boolean assignment\n\ \ constructorName + method with constructor name\n\ +\ deadCode + dead code excluding trivial if (DEBUG) check\n\ +\ dep-ann missing @Deprecated annotation\n\ \ deprecation + deprecation outside deprecated code\n\ +\ discouraged + use of types matching a discouraged access rule\n\ \ emptyBlock undocumented empty block\n\ +\ enumIdentifier ''enum'' used as identifier\n\ +\ enumSwitch incomplete enum switch\n\ +\ fallthrough possible fall-through case\n\ \ fieldHiding field hiding another variable\n\ +\ finalBound type parameter with final bound\n\ \ finally + finally block not completing normally\n\ +\ forbidden + use of types matching a forbidden access rule\n\ +\ hashCode missing hashCode() method when overriding equals()\n\ +\ hiding macro for fieldHiding, localHiding, typeHiding and\n\ +\ maskedCatchBlock\n\ +\ includeAssertNull raise null warnings for variables\n\ +\ that got tainted in an assert expression\n\ \ indirectStatic indirect reference to static member\n\ +\ intfAnnotation + annotation type used as super interface\n\ \ intfNonInherited + interface non-inherited method compatibility\n\ +\ intfRedundant find redundant superinterfaces\n\ \ javadoc invalid javadoc\n\ \ localHiding local variable hiding another variable\n\ \ maskedCatchBlock + hidden catch block\n\ \ nls string literal lacking non-nls tag //$NON-NLS-$\n\ \ noEffectAssign + assignment without effect\n\ +\ null potential missing or redundant null check\n\ +\ nullDereference + missing null check\n\ +\ over-ann missing @Override annotation (superclass)\n\ +\ paramAssign assignment to a parameter\n\ \ pkgDefaultMethod + attempt to override package-default method\n\ -\ semicolon superfluous semicolon\n\ +\ raw + usage of raw type\n\ +\ semicolon unnecessary semicolon, empty statement\n\ +\ serial + missing serialVersionUID\n\ +\ specialParamHiding constructor or setter parameter hiding a field\n\ +\ static-method method can be declared as static\n\ +\ static-access macro for indirectStatic and staticReceiver\n\ +\ staticReceiver + non-static reference to static member\n\ +\ super overriding a method without making a super invocation\n\ +\ suppress + enable @SuppressWarnings\n\ +\ When used with -err:, it can also silent optional\n\ +\ errors and warnings\n\ +\ syncOverride missing synchronized in synchr. method override\n\ +\ syntheticAccess synthetic access for innerclass\n\ +\ tasks() tasks identified by tags inside comments\n\ +\ typeHiding + type parameter hiding another type\n\ +\ unavoidableGenericProblems + ignore unavoidable type safety problems\n\ +\ due to raw APIs\n\ +\ unchecked + unchecked type operation\n\ +\ unnecessaryElse unnecessary else clause\n\ \ unqualifiedField unqualified reference to field\n\ +\ unused macro for unusedAllocation, unusedArgument,\n\ +\ unusedImport, unusedLabel, unusedLocal,\n\ +\ unusedPrivate, unusedThrown, and unusedTypeArgs\n\ +\ unusedAllocation allocating an object that is not used\n\ +\ unusedArgument unread method parameter\n\ \ unusedImport + unused import declaration\n\ -\ unusedLocal unread local variable\n\ -\ unusedPrivate unused private member declaration\n\ +\ unusedLabel + unused label\n\ +\ unusedLocal + unread local variable\n\ +\ unusedPrivate + unused private member declaration\n\ \ unusedThrown unused declared thrown exception\n\ +\ unusedTypeArgs + unused type arguments for method and constructor\n\ \ uselessTypeCheck unnecessary cast/instanceof operation\n\ -\ specialParamHiding constructor or setter parameter hiding another field\n\ -\ staticReceiver + non-static reference to static member\n\ -\ syntheticAccess synthetic access for innerclass\n\ -\ tasks() tasks identified by tags inside comments\n\ +\ varargsCast + varargs argument need explicit cast\n\ +\ warningToken + unsupported or unnecessary @SuppressWarnings\n \ \n\ \ Debug options:\n\ \ -g[:lines,vars,source] custom debug info\n\