[FOray-commit] SF.net SVN: foray:[10617] trunk/foray
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2009-01-20 13:42:41
|
Revision: 10617
http://foray.svn.sourceforge.net/foray/?rev=10617&view=rev
Author: victormote
Date: 2009-01-20 13:42:30 +0000 (Tue, 20 Jan 2009)
Log Message:
-----------
Clean up checkstyle complaints.
Modified Paths:
--------------
trunk/foray/foray-app/src/java/org/foray/demo/servlet/AbstractDemoServlet.java
trunk/foray/foray-common/src/java/org/foray/common/RandomReader.java
trunk/foray/foray-font/src/java/org/foray/font/ConfigParser.java
trunk/foray/foray-hyphen/src/java/org/foray/hyphen/PatternGenerator.java
trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingVector.java
trunk/foray/foray-ps/src/java/org/foray/ps/type1/PsCharStringsDictionary.java
trunk/foray/foray-ps/src/java/org/foray/ps/type1/PsMetricsDictionary.java
trunk/foray/foray-ps/src/java/org/foray/ps/type1/PsPrivateDictionary.java
Modified: trunk/foray/foray-app/src/java/org/foray/demo/servlet/AbstractDemoServlet.java
===================================================================
--- trunk/foray/foray-app/src/java/org/foray/demo/servlet/AbstractDemoServlet.java 2009-01-20 12:49:30 UTC (rev 10616)
+++ trunk/foray/foray-app/src/java/org/foray/demo/servlet/AbstractDemoServlet.java 2009-01-20 13:42:30 UTC (rev 10617)
@@ -65,9 +65,6 @@
*/
public abstract class AbstractDemoServlet extends HttpServlet {
- /** Constant needed for serialization. */
- private static final long serialVersionUID = -2834400719691501846L;
-
/** Constant for the "fo" request parameter. */
public static final String FO_REQUEST_PARAM = "fo";
@@ -77,6 +74,9 @@
/** Constant for the "xsl" request parameter. */
public static final String XSL_REQUEST_PARAM = "xsl";
+ /** Constant needed for serialization. */
+ private static final long serialVersionUID = -2834400719691501846L;
+
/** The logger. */
private Log logger = null;
Modified: trunk/foray/foray-common/src/java/org/foray/common/RandomReader.java
===================================================================
--- trunk/foray/foray-common/src/java/org/foray/common/RandomReader.java 2009-01-20 12:49:30 UTC (rev 10616)
+++ trunk/foray/foray-common/src/java/org/foray/common/RandomReader.java 2009-01-20 13:42:30 UTC (rev 10617)
@@ -518,7 +518,7 @@
* backward, we will be sliding the left end of the viewbox over the right
* end of the file.
*/
- class ByteSearcher {
+ final class ByteSearcher {
/** The size, in bytes, to be read in. Set up here as a variable in
* case we want someday to try to optimize it. */
@@ -607,7 +607,7 @@
* @param readBackward True if we are searching backward, false if we
* are searching forward.
*/
- ByteSearcher(final byte[] bytesToFind, final long startRange,
+ private ByteSearcher(final byte[] bytesToFind, final long startRange,
final long endRange, final boolean readBackward) {
this.bytesToFind = bytesToFind;
this.startRange = startRange;
Modified: trunk/foray/foray-font/src/java/org/foray/font/ConfigParser.java
===================================================================
--- trunk/foray/foray-font/src/java/org/foray/font/ConfigParser.java 2009-01-20 12:49:30 UTC (rev 10616)
+++ trunk/foray/foray-font/src/java/org/foray/font/ConfigParser.java 2009-01-20 13:42:30 UTC (rev 10617)
@@ -949,7 +949,7 @@
/**
* Inner class for storing font family members.
*/
- private static class FontFamilyMember {
+ private final class FontFamilyMember {
/** The encoding for this instance. */
private final EncodingVector encoding;
@@ -993,7 +993,7 @@
* instance.
* @param simulateStretch he "simulate-stretch" value for this instance.
*/
- FontFamilyMember(
+ private FontFamilyMember(
final EncodingVector encoding,
final String style,
final String weight,
Modified: trunk/foray/foray-hyphen/src/java/org/foray/hyphen/PatternGenerator.java
===================================================================
--- trunk/foray/foray-hyphen/src/java/org/foray/hyphen/PatternGenerator.java 2009-01-20 12:49:30 UTC (rev 10616)
+++ trunk/foray/foray-hyphen/src/java/org/foray/hyphen/PatternGenerator.java 2009-01-20 13:42:30 UTC (rev 10617)
@@ -211,10 +211,12 @@
/* End of Constants from TeX code. */
/* Start of struct definitions from TeX code. */
- private class Opword {
+ private final class Opword {
private int dot;
private int val;
private int op;
+
+ private Opword() { }
}
/* End of struct definitions from TeX code. */
Modified: trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingVector.java
===================================================================
--- trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingVector.java 2009-01-20 12:49:30 UTC (rev 10616)
+++ trunk/foray/foray-ps/src/java/org/foray/ps/encode/EncodingVector.java 2009-01-20 13:42:30 UTC (rev 10617)
@@ -86,9 +86,6 @@
public abstract class EncodingVector extends Encoding
implements org.axsl.ps.EncodingVector, Serializable {
- /** Constant needed for serialization. */
- private static final long serialVersionUID = 6967489975814026068L;
-
/** The name of the undefined glyph. */
public static final String NOTDEF = ".notdef";
@@ -96,6 +93,9 @@
public static final String STANDARD_MACINTOSH_ORDERING
= "MacStandardEncoding";
+ /** Constant needed for serialization. */
+ private static final long serialVersionUID = 6967489975814026068L;
+
/**
* A map of all of the predefined encodings that have already been
* instantiated. The key to the map is a String containing the name of the
Modified: trunk/foray/foray-ps/src/java/org/foray/ps/type1/PsCharStringsDictionary.java
===================================================================
--- trunk/foray/foray-ps/src/java/org/foray/ps/type1/PsCharStringsDictionary.java 2009-01-20 12:49:30 UTC (rev 10616)
+++ trunk/foray/foray-ps/src/java/org/foray/ps/type1/PsCharStringsDictionary.java 2009-01-20 13:42:30 UTC (rev 10617)
@@ -36,6 +36,9 @@
import java.math.BigDecimal;
+/**
+ * A Type 1 font "CharStrings" dictionary.
+ */
public class PsCharStringsDictionary extends PsDictionaryWrapper {
/** Key to the "StdVW" entry. */
Modified: trunk/foray/foray-ps/src/java/org/foray/ps/type1/PsMetricsDictionary.java
===================================================================
--- trunk/foray/foray-ps/src/java/org/foray/ps/type1/PsMetricsDictionary.java 2009-01-20 12:49:30 UTC (rev 10616)
+++ trunk/foray/foray-ps/src/java/org/foray/ps/type1/PsMetricsDictionary.java 2009-01-20 13:42:30 UTC (rev 10617)
@@ -31,6 +31,9 @@
import org.foray.ps.PsDictionary;
import org.foray.ps.PsDictionaryWrapper;
+/**
+ * A Type 1 font "Metrics" dictionary.
+ */
public class PsMetricsDictionary extends PsDictionaryWrapper {
/**
Modified: trunk/foray/foray-ps/src/java/org/foray/ps/type1/PsPrivateDictionary.java
===================================================================
--- trunk/foray/foray-ps/src/java/org/foray/ps/type1/PsPrivateDictionary.java 2009-01-20 12:49:30 UTC (rev 10616)
+++ trunk/foray/foray-ps/src/java/org/foray/ps/type1/PsPrivateDictionary.java 2009-01-20 13:42:30 UTC (rev 10617)
@@ -36,6 +36,9 @@
import java.math.BigDecimal;
+/**
+ * A Type 1 font "Private" dictionary.
+ */
public class PsPrivateDictionary extends PsDictionaryWrapper {
/** Key to the "StdVW" entry. */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|