[jsword-svn] r1991 - in trunk/jsword-web: .settings src/main/java/org/crosswire/jsword/view/web

dmsmith at crosswire.org dmsmith at crosswire.org
Sat Oct 23 11:56:43 MST 2010


Author: dmsmith
Date: 2010-10-23 11:56:42 -0700 (Sat, 23 Oct 2010)
New Revision: 1991

Modified:
   trunk/jsword-web/.settings/org.eclipse.jdt.core.prefs
   trunk/jsword-web/src/main/java/org/crosswire/jsword/view/web/DownloadSet.java
   trunk/jsword-web/src/main/java/org/crosswire/jsword/view/web/Msg.java
Log:
remove NON-NLS comments

Modified: trunk/jsword-web/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/jsword-web/.settings/org.eclipse.jdt.core.prefs	2010-10-23 18:55:43 UTC (rev 1990)
+++ trunk/jsword-web/.settings/org.eclipse.jdt.core.prefs	2010-10-23 18:56:42 UTC (rev 1991)
@@ -1,4 +1,4 @@
-#Thu Oct 29 08:52:55 EDT 2009
+#Sun Jan 31 17:56:41 EST 2010
 eclipse.preferences.version=1
 org.eclipse.jdt.core.builder.cleanOutputFolder=clean
 org.eclipse.jdt.core.builder.duplicateResourceTask=warning
@@ -27,12 +27,16 @@
 org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
 org.eclipse.jdt.core.compiler.problem.autoboxing=warning
+org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
+org.eclipse.jdt.core.compiler.problem.deadCode=warning
 org.eclipse.jdt.core.compiler.problem.deprecation=warning
 org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
 org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
+org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
 org.eclipse.jdt.core.compiler.problem.emptyStatement=warning
 org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
 org.eclipse.jdt.core.compiler.problem.fallthroughCase=warning
+org.eclipse.jdt.core.compiler.problem.fatalOptionalError=enabled
 org.eclipse.jdt.core.compiler.problem.fieldHiding=warning
 org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
 org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
@@ -48,6 +52,7 @@
 org.eclipse.jdt.core.compiler.problem.localVariableHiding=warning
 org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
 org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
+org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
 org.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignore
 org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=enabled
 org.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public
@@ -56,13 +61,18 @@
 org.eclipse.jdt.core.compiler.problem.missingJavadocTagsVisibility=private
 org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
 org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
+org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
 org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
 org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
 org.eclipse.jdt.core.compiler.problem.nullReference=warning
 org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
 org.eclipse.jdt.core.compiler.problem.parameterAssignment=warning
 org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
+org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
+org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
+org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
+org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
 org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
 org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
 org.eclipse.jdt.core.compiler.problem.suppressWarnings=disabled
@@ -76,13 +86,18 @@
 org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
 org.eclipse.jdt.core.compiler.problem.unsafeTypeOperation=warning
 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
+org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
 org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
 org.eclipse.jdt.core.compiler.problem.unusedImport=warning
+org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
 org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
 org.eclipse.jdt.core.compiler.problem.unusedParameter=warning
+org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
 org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
 org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
 org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
+org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
 org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
 org.eclipse.jdt.core.compiler.source=1.4
 org.eclipse.jdt.core.compiler.taskCaseSensitive=enabled

Modified: trunk/jsword-web/src/main/java/org/crosswire/jsword/view/web/DownloadSet.java
===================================================================
--- trunk/jsword-web/src/main/java/org/crosswire/jsword/view/web/DownloadSet.java	2010-10-23 18:55:43 UTC (rev 1990)
+++ trunk/jsword-web/src/main/java/org/crosswire/jsword/view/web/DownloadSet.java	2010-10-23 18:56:42 UTC (rev 1991)
@@ -21,12 +21,12 @@
  * @author Joe Walker [joe at eireneh dot com]
  */
 public class DownloadSet implements Comparable {
-    public static final String BIN_ZIP = "-bin.zip"; //$NON-NLS-1$
-    public static final String BIN_TGZ = "-bin.tar.gz"; //$NON-NLS-1$
-    public static final String SRC_ZIP = "-src.zip"; //$NON-NLS-1$
-    public static final String SRC_TGZ = "-src.tar.gz"; //$NON-NLS-1$
-    public static final String DOC_ZIP = "-doc.zip"; //$NON-NLS-1$
-    public static final String DOC_TGZ = "-doc.tar.gz"; //$NON-NLS-1$
+    public static final String BIN_ZIP = "-bin.zip";
+    public static final String BIN_TGZ = "-bin.tar.gz";
+    public static final String SRC_ZIP = "-src.zip";
+    public static final String SRC_TGZ = "-src.tar.gz";
+    public static final String DOC_ZIP = "-doc.zip";
+    public static final String DOC_TGZ = "-doc.tar.gz";
 
     /**
      * Get an Iterator over all the Downloads in the specified Directory
@@ -37,11 +37,11 @@
             throw new IOException(Msg.NON_DIR.toString(localprefix));
         }
 
-        log.debug("dig " + localprefix); //$NON-NLS-1$
+        log.debug("dig " + localprefix);
         File[] files = dir.listFiles(new FileFilter() {
             public boolean accept(File file) {
                 String name = file.getName();
-                log.debug("found " + name); //$NON-NLS-1$
+                log.debug("found " + name);
                 return file.canRead() && name.startsWith(TEST_PREFIX) && name.endsWith(TEST_SUFFIX);
             }
         });
@@ -49,7 +49,7 @@
         SortedSet reply = new TreeSet();
         for (int i = 0; i < files.length; i++) {
             String name = files[i].getName();
-            log.debug("adding " + name); //$NON-NLS-1$
+            log.debug("adding " + name);
             String sets = name.substring(TEST_PREFIX.length(), name.length() - TEST_SUFFIX.length());
             reply.add(new DownloadSet(localprefix, webprefix, sets, datesort));
         }
@@ -66,7 +66,7 @@
         this.setname = setname;
         this.datesort = datesort;
 
-        log.debug("ctor " + webprefix); //$NON-NLS-1$
+        log.debug("ctor " + webprefix);
     }
 
     /*
@@ -76,7 +76,7 @@
      */
     public int compareTo(Object obj) {
         if (!(obj instanceof DownloadSet)) {
-            log.error("Asked to compare to non DownloadSet"); //$NON-NLS-1$
+            log.error("Asked to compare to non DownloadSet");
             return 0;
         }
 
@@ -92,7 +92,7 @@
 
                 return thisdate.compareTo(thatdate);
             } catch (ParseException ex) {
-                log.error("Failed to parse dates", ex); //$NON-NLS-1$
+                log.error("Failed to parse dates", ex);
                 return 0;
             }
         }
@@ -126,9 +126,9 @@
     public String getLinkString(String extension) {
         File file = new File(localprefix, TEST_PREFIX + setname + extension);
         String size = NF.format(file.length() / (1024.0F * 1024.0F));
-        String reply = "<a href='" + webprefix + '/' + TEST_PREFIX + setname + extension + "'>" + size + " Mb</a>"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+        String reply = "<a href='" + webprefix + '/' + TEST_PREFIX + setname + extension + "'>" + size + " Mb</a>";
 
-        log.debug("link=" + reply); //$NON-NLS-1$
+        log.debug("link=" + reply);
 
         return reply;
     }
@@ -138,13 +138,13 @@
     private String localprefix;
     private String setname;
 
-    private static final String TEST_PREFIX = "jsword-"; //$NON-NLS-1$
+    private static final String TEST_PREFIX = "jsword-";
     private static final String TEST_SUFFIX = BIN_ZIP;
 
     private static final NumberFormat NF = NumberFormat.getNumberInstance();
-    private static final String VERSION_DATE = "yyyyMMdd"; //$NON-NLS-1$
+    private static final String VERSION_DATE = "yyyyMMdd";
     private static final DateFormat DF_DISK = new SimpleDateFormat(VERSION_DATE);
-    private static final DateFormat DF_USER = new SimpleDateFormat("dd MMM yyyy"); //$NON-NLS-1$
+    private static final DateFormat DF_USER = new SimpleDateFormat("dd MMM yyyy");
     static {
         NF.setMaximumFractionDigits(2);
     }

Modified: trunk/jsword-web/src/main/java/org/crosswire/jsword/view/web/Msg.java
===================================================================
--- trunk/jsword-web/src/main/java/org/crosswire/jsword/view/web/Msg.java	2010-10-23 18:55:43 UTC (rev 1990)
+++ trunk/jsword-web/src/main/java/org/crosswire/jsword/view/web/Msg.java	2010-10-23 18:56:42 UTC (rev 1991)
@@ -10,9 +10,9 @@
  * @author Joe Walker [joe at eireneh dot com]
  */
 class Msg extends MsgBase {
-    static final Msg INIT_FAILED = new Msg("Failed to initialize"); //$NON-NLS-1$
-    static final Msg VERSION = new Msg("Version {0}"); //$NON-NLS-1$
-    static final Msg NON_DIR = new Msg("{0} is not a directory"); //$NON-NLS-1$
+    static final Msg INIT_FAILED = new Msg("Failed to initialize");
+    static final Msg VERSION = new Msg("Version {0}");
+    static final Msg NON_DIR = new Msg("{0} is not a directory");
 
     /**
      * Passthrough ctor




More information about the jsword-svn mailing list