<!-- ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... -->
<!-- ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... -->
- <!-- <module name="MultipleVariableDeclarations"/> produces 78 new errors -->
+ <module name="MultipleVariableDeclarations"/>
<!-- ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... -->
<!-- ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... -->
}
}
// compile interval search data
- int ivIndex = 0, niv = intervals.size();
+ int ivIndex = 0;
+ int niv = intervals.size();
bcS1 = new int [ niv ];
bcE1 = new int [ niv ];
bcC1 = new byte [ niv ];
}
private static int[] parseInterval ( String interval ) throws Exception {
- int s, e;
+ int s;
+ int e;
String[] fa = interval.split("\\.\\.");
if ( fa.length == 1 ) {
s = Integer.parseInt ( fa[0], 16 );
rm.put ( Integer.valueOf ( r[0] ), Integer.valueOf ( r[1] ) );
}
// add complement ranges save last
- int s, e, cs = 0;
+ int s;
+ int e;
+ int cs = 0;
List compRanges = new ArrayList ( rm.size() + 1 );
for ( Iterator it = rm.entrySet().iterator(); it.hasNext(); ) {
Map.Entry/*<Integer,Integer>*/ me = (Map.Entry/*<Integer,Integer>*/) it.next();
continue;
}
- int uppercode = -1, titlecode = -1;
+ int uppercode = -1;
+ int titlecode = -1;
if (!"".equals(fields[SIMPLE_UPPERCASE_MAPPING])) {
uppercode = Integer.parseInt(fields[SIMPLE_UPPERCASE_MAPPING], 16);
}
* @throws URISyntaxException if the input URI is incorrect
*/
public static void main(String[] args) throws IOException, URISyntaxException {
- String type = "ucd", prefix = "--", infile = null, outfile = null;
+ String type = "ucd";
+ String prefix = "--";
+ String infile = null;
+ String outfile = null;
boolean hexcode = false;
int i;
for (i = 0; i < args.length && args[i].startsWith(prefix); ++i) {
throw new Exception(lineBreakFileName + ':' + lineNumber + ": Unknown property value in " + line);
}
String codepoint = line.substring(0, idx);
- int low, high;
+ int low;
+ int high;
idx = codepoint.indexOf("..");
try {
if (idx >= 0) {
if (source == null) {
URL absoluteURL = null;
int hashPos = href.indexOf('#');
- String fileURL, fragment;
+ String fileURL;
+ String fragment;
if (hashPos >= 0) {
fileURL = href.substring(0, hashPos);
fragment = href.substring(hashPos);
if (hyphPatConfig.length != 0) {
Map/*<String,String>*/ hyphPatNames = new HashMap/*<String,String>*/();
for (int i = 0; i < hyphPatConfig.length; ++i) {
- String lang, country, filename;
+ String lang;
+ String country;
+ String filename;
StringBuffer error = new StringBuffer();
String location = hyphPatConfig[i].getLocation();
private static final long serialVersionUID = -8743287485623778341L;
- private double a, b, c, d, e, f;
+ private double a;
+ private double b;
+ private double c;
+ private double d;
+ private double e;
+ private double f;
private static final CTM CTM_LRTB = new CTM(1, 0, 0, 1, 0, 0);
private static final CTM CTM_RLTB = new CTM(1, 0, 0, 1, 0, 0);
* @return CTM The result of rotating this CTM.
*/
public CTM rotate(double angle) {
- double cos, sin;
+ double cos;
+ double sin;
if (angle == 90.0 || angle == -270.0) {
cos = 0.0;
sin = 1.0;
WritingMode writingMode,
Rectangle2D absVPrect,
FODimension reldims) {
- int width, height;
+ int width;
+ int height;
// We will use the absolute reference-orientation to set up the CTM.
// The value here is relative to its ancestor reference area.
if (absRefOrient % 180 == 0) {
}
}
// extract glyph class array
- int i = 0, n = entries.size() - 1, gcMax = -1;
+ int i = 0;
+ int n = entries.size() - 1;
+ int gcMax = -1;
int[] gca = new int [ n ];
while ( it.hasNext() ) {
Object o = it.next();
return getMappedIndex ( gid );
}
private void populate ( List entries ) {
- int i = 0, n = entries.size(), gidMax = -1;
+ int i = 0;
+ int n = entries.size();
+ int gidMax = -1;
int[] map = new int [ n ];
for ( Iterator it = entries.iterator(); it.hasNext();) {
Object o = it.next();
}
/** {@inheritDoc} */
public int getMappedIndex ( int gid ) {
- int i, mi;
+ int i;
+ int mi;
if ( ( i = Arrays.binarySearch ( sa, gid ) ) >= 0 ) {
mi = getMappedIndex ( gid, sa [ i ], ma [ i ] ); // matches start of (some) range
} else if ( ( i = - ( i + 1 ) ) == 0 ) {
*/
public abstract int getMappedIndex ( int gid, int s, int m );
private void populate ( List entries ) {
- int i = 0, n = entries.size(), gidMax = -1, miMax = -1;
+ int i = 0;
+ int n = entries.size();
+ int gidMax = -1;
+ int miMax = -1;
int[] sa = new int [ n ];
int[] ea = new int [ n ];
int[] ma = new int [ n ];
}
/** {@inheritDoc} */
public boolean position ( GlyphPositioningState ps ) {
- int gi = ps.getGlyph(), ci;
+ int gi = ps.getGlyph();
+ int ci;
if ( ( ci = getCoverageIndex ( gi ) ) < 0 ) {
return false;
} else {
/** {@inheritDoc} */
public boolean position ( GlyphPositioningState ps ) {
boolean applied = false;
- int gi = ps.getGlyph(0), ci;
+ int gi = ps.getGlyph(0);
+ int ci;
if ( ( ci = getCoverageIndex ( gi ) ) >= 0 ) {
int[] counts = ps.getGlyphsAvailable ( 0 );
int nga = counts[0];
/** {@inheritDoc} */
public boolean position ( GlyphPositioningState ps ) {
boolean applied = false;
- int gi = ps.getGlyph(0), ci;
+ int gi = ps.getGlyph(0);
+ int ci;
if ( ( ci = getCoverageIndex ( gi ) ) >= 0 ) {
int[] counts = ps.getGlyphsAvailable ( 0 );
int nga = counts[0];
/** {@inheritDoc} */
public boolean position ( GlyphPositioningState ps ) {
boolean applied = false;
- int giMark = ps.getGlyph(), ciMark;
+ int giMark = ps.getGlyph();
+ int ciMark;
if ( ( ciMark = getCoverageIndex ( giMark ) ) >= 0 ) {
MarkAnchor ma = getMarkAnchor ( ciMark, giMark );
if ( ma != null ) {
/** {@inheritDoc} */
public boolean position ( GlyphPositioningState ps ) {
boolean applied = false;
- int giMark = ps.getGlyph(), ciMark;
+ int giMark = ps.getGlyph();
+ int ciMark;
if ( ( ciMark = getCoverageIndex ( giMark ) ) >= 0 ) {
MarkAnchor ma = getMarkAnchor ( ciMark, giMark );
int mxc = getMaxComponentCount();
/** {@inheritDoc} */
public boolean position ( GlyphPositioningState ps ) {
boolean applied = false;
- int giMark1 = ps.getGlyph(), ciMark1;
+ int giMark1 = ps.getGlyph();
+ int ciMark1;
if ( ( ciMark1 = getCoverageIndex ( giMark1 ) ) >= 0 ) {
MarkAnchor ma = getMark1Anchor ( ciMark1, giMark1 );
if ( ma != null ) {
/** {@inheritDoc} */
public boolean position ( GlyphPositioningState ps ) {
boolean applied = false;
- int gi = ps.getGlyph(), ci;
+ int gi = ps.getGlyph();
+ int ci;
if ( ( ci = getCoverageIndex ( gi ) ) >= 0 ) {
int[] rv = new int[1];
RuleLookup[] la = getLookups ( ci, gi, ps, rv );
/** {@inheritDoc} */
public boolean position ( GlyphPositioningState ps ) {
boolean applied = false;
- int gi = ps.getGlyph(), ci;
+ int gi = ps.getGlyph();
+ int ci;
if ( ( ci = getCoverageIndex ( gi ) ) >= 0 ) {
int[] rv = new int[1];
RuleLookup[] la = getLookups ( ci, gi, ps, rv );
}
/** {@inheritDoc} */
public boolean substitute ( GlyphSubstitutionState ss ) {
- int gi = ss.getGlyph(), ci;
+ int gi = ss.getGlyph();
+ int ci;
if ( ( ci = getCoverageIndex ( gi ) ) < 0 ) {
return false;
} else {
}
}
private void populate ( List entries ) {
- int i = 0, n = entries.size();
+ int i = 0;
+ int n = entries.size();
int[] glyphs = new int [ n ];
for ( Iterator it = entries.iterator(); it.hasNext();) {
Object o = it.next();
}
/** {@inheritDoc} */
public boolean substitute ( GlyphSubstitutionState ss ) {
- int gi = ss.getGlyph(), ci;
+ int gi = ss.getGlyph();
+ int ci;
if ( ( ci = getCoverageIndex ( gi ) ) < 0 ) {
return false;
} else {
}
/** {@inheritDoc} */
public boolean substitute ( GlyphSubstitutionState ss ) {
- int gi = ss.getGlyph(), ci;
+ int gi = ss.getGlyph();
+ int ci;
if ( ( ci = getCoverageIndex ( gi ) ) < 0 ) {
return false;
} else {
}
}
private void populate ( List entries ) {
- int i = 0, n = entries.size();
+ int i = 0;
+ int n = entries.size();
int[][] gaa = new int [ n ][];
for ( Iterator it = entries.iterator(); it.hasNext();) {
Object o = it.next();
}
/** {@inheritDoc} */
public boolean substitute ( GlyphSubstitutionState ss ) {
- int gi = ss.getGlyph(), ci;
+ int gi = ss.getGlyph();
+ int ci;
if ( ( ci = getCoverageIndex ( gi ) ) < 0 ) {
return false;
} else {
boolean reverse = false;
GlyphTester ignores = ss.getIgnoreDefault();
int[] counts = ss.getGlyphsAvailable ( 0, reverse, ignores );
- int nga = counts[0], ngi;
+ int nga = counts[0];
+ int ngi;
if ( nga > 1 ) {
int[] iga = ss.getGlyphs ( 0, nga, reverse, ignores, null, counts );
Ligature l = findLigature ( ls, iga );
}
}
private void populate ( List entries ) {
- int i = 0, n = entries.size();
+ int i = 0;
+ int n = entries.size();
LigatureSet[] ligatureSets = new LigatureSet [ n ];
for ( Iterator it = entries.iterator(); it.hasNext();) {
Object o = it.next();
}
/** {@inheritDoc} */
public boolean substitute ( GlyphSubstitutionState ss ) {
- int gi = ss.getGlyph(), ci;
+ int gi = ss.getGlyph();
+ int ci;
if ( ( ci = getCoverageIndex ( gi ) ) < 0 ) {
return false;
} else {
}
/** {@inheritDoc} */
public boolean substitute ( GlyphSubstitutionState ss ) {
- int gi = ss.getGlyph(), ci;
+ int gi = ss.getGlyph();
+ int ci;
if ( ( ci = getCoverageIndex ( gi ) ) < 0 ) {
return false;
} else {
int es = in.readTTFUShort();
// read delta format
int df = in.readTTFUShort();
- int s1, m1, dm, dd, s2;
+ int s1;
+ int m1;
+ int dm;
+ int dd;
+ int s2;
if ( df == 1 ) {
s1 = 14;
m1 = 0x3;
if ( s < 0 ) {
return -1;
} else {
- int c, i = 0;
- int nc = 0, nh = 0;
+ int c;
+ int i = 0;
+ int nc = 0;
+ int nh = 0;
do {
// C
if ( ( s + i ) < e ) {
if ( s < 0 ) {
return -1;
} else {
- int c, i = 0;
- int nc = 0, nv = 0, nx = 0;
+ int c;
+ int i = 0;
+ int nc = 0;
+ int nv = 0;
+ int nx = 0;
do {
// C
if ( ( s + i ) < e ) {
if ( s < 0 ) {
return -1;
} else {
- int c, i = 0;
- int nc = 0, nh = 0;
+ int c;
+ int i = 0;
+ int nc = 0;
+ int nh = 0;
do {
// C
if ( ( s + i ) < e ) {
if ( s < 0 ) {
return -1;
} else {
- int c, i = 0;
- int nc = 0, nv = 0, nx = 0;
+ int c;
+ int i = 0;
+ int nc = 0;
+ int nv = 0;
+ int nx = 0;
do {
// C
if ( ( s + i ) < e ) {
if ( s < 0 ) {
return -1;
} else {
- int c, i = 0;
- int nc = 0, nh = 0;
+ int c;
+ int i = 0;
+ int nc = 0;
+ int nh = 0;
do {
// C
if ( ( s + i ) < e ) {
if ( s < 0 ) {
return -1;
} else {
- int c, i = 0;
- int nc = 0, nv = 0, nx = 0;
+ int c;
+ int i = 0;
+ int nc = 0;
+ int nv = 0;
+ int nx = 0;
do {
// C
if ( ( s + i ) < e ) {
*/
private static int[] mergeIntervals ( int[] ia ) {
int ni = ia.length;
- int i, n, nm, is, ie;
+ int i;
+ int n;
+ int nm;
+ int is;
+ int ie;
// count merged sub-intervals
for ( i = 0, n = ni, nm = 0, is = ie = -1; i < n; i += 2 ) {
int s = ia [ i + 0 ];
}
String src = (cp != null ? cp.getSrc() : "");
- float red = 0, green = 0, blue = 0;
+ float red = 0;
+ float green = 0;
+ float blue = 0;
red = args[0].getNumber().floatValue();
green = args[1].getNumber().floatValue();
blue = args[2].getNumber().floatValue();
throw pe;
}
- float red = 0, green = 0, blue = 0;
+ float red = 0;
+ float green = 0;
+ float blue = 0;
red = args[0].getNumber().floatValue();
green = args[1].getNumber().floatValue();
blue = args[2].getNumber().floatValue();
* specification.
*/
public double getTableUnits() {
- double tu1 = 0.0, tu2 = 0.0;
+ double tu1 = 0.0;
+ double tu2 = 0.0;
if (op1 instanceof RelativeNumericProperty) {
tu1 = ((RelativeNumericProperty) op1).getTableUnits();
} else if (op1 instanceof TableColLength) {
CacheEntry[] newTable = new CacheEntry[newLength];
- int hash, idx;
+ int hash;
+ int idx;
Object o;
newLength--;
for (int i = table.length; --i >= 0;) {
return latin1;
}
}
- int bot = 0, top = characters.length - 1;
+ int bot = 0;
+ int top = characters.length - 1;
while (top >= bot) {
int mid = (bot + top) / 2;
char mc = characters[mid];
private GlyphSequence mapCharsToGlyphs ( CharSequence cs ) {
IntBuffer cb = IntBuffer.allocate ( cs.length() );
IntBuffer gb = IntBuffer.allocate ( cs.length() );
- int gi, giMissing = findGlyphIndex ( Typeface.NOT_FOUND );
+ int gi;
+ int giMissing = findGlyphIndex ( Typeface.NOT_FOUND );
for ( int i = 0, n = cs.length(); i < n; i++ ) {
int cc = cs.charAt ( i );
if ( ( cc >= 0xD800 ) && ( cc < 0xDC00 ) ) {
+ (char) cc + "'");
}
if ( cc > 0x00FFFF ) {
- int sh, sl;
+ int sh;
+ int sl;
cc -= 0x10000;
sh = ( ( cc >> 10 ) & 0x3FF ) + 0xD800;
sl = ( ( cc >> 0 ) & 0x3FF ) + 0xDC00;
// should continue if this fails
}
}
- File osFontsDir = null, psFontsDir = null;
+ File osFontsDir = null;
+ File psFontsDir = null;
if (windir != null) {
// remove any trailing '/'
if (windir.endsWith("/")) {
* are stored.
*/
protected int packValues(String values) {
- int i, n = values.length();
+ int i;
+ int n = values.length();
int m = (n & 1) == 1 ? (n >> 1) + 2 : (n >> 1) + 1;
int offset = vspace.alloc(m);
byte[] va = vspace.getArray();
protected void searchPatterns(char[] word, int index, byte[] il) {
byte[] values;
int i = index;
- char p, q;
+ char p;
+ char q;
char sp = word[i];
p = root;
* @return an integer
*/
public static int strcmp(String str, char[] a, int start) {
- int i, d, len = str.length();
+ int i;
+ int d;
+ int len = str.length();
for (i = 0; i < len; i++) {
d = (int)str.charAt(i) - a[start + i];
if (d != 0) {
public void balance() {
// System.out.print("Before root splitchar = "); System.out.println(sc[root]);
- int i = 0, n = length;
+ int i = 0;
+ int n = length;
String[] k = new String[n];
char[] v = new char[n];
Iterator iter = new Iterator();
boolean bpDirectionChanges = blockProgressionDirectionChanges();
Point offset = getAbsOffset();
- int allocBPD, allocIPD;
+ int allocBPD;
+ int allocIPD;
if (height.getEnum() == EN_AUTO
|| (!height.isAbsolute() && getAncestorBlockAreaBPD() <= 0)) {
//auto height when height="auto" or "if that dimension is not specified explicitly
return false;
}
// does the first element of the first paragraph add to an existing word?
- ListElement lastOldElement, firstNewElement;
+ ListElement lastOldElement;
+ ListElement firstNewElement;
lastOldElement = getLast();
firstNewElement = sequence.getElement(0);
if (firstNewElement.isBox() && !((KnuthElement) firstNewElement).isAuxiliary()
ListIterator currParIterator = currPar.listIterator(currPar.ignoreAtStart);
// list of TLM involved in hyphenation
List updateList = new LinkedList();
- KnuthElement firstElement, nextElement;
+ KnuthElement firstElement;
+ KnuthElement nextElement;
// current InlineLevelLayoutManager
InlineLevelLayoutManager currLM = null;
// number of KnuthBox elements containing word fragments
// Find the first and last positions in oldList that point to an AreaInfo
// (i.e. getLeafPos() != -1)
- LeafPosition startPos = null, endPos = null;
+ LeafPosition startPos = null;
+ LeafPosition endPos = null;
ListIterator oldListIter;
for (oldListIter = oldList.listIterator(); oldListIter.hasNext();) {
Position pos = ((KnuthElement) oldListIter.next()).getPosition();
int areaInfosRemoved = 0;
if (!changeList.isEmpty()) {
- int oldIndex = -1, changeIndex;
+ int oldIndex = -1;
+ int changeIndex;
PendingChange currChange;
ListIterator changeListIterator = changeList.listIterator();
while (changeListIterator.hasNext()) {
pdf.append(this.objectcount + 1);
pdf.append("\n0000000000 65535 f \n");
- String s, loc;
+ String s;
+ String loc;
for (int count = 0; count < this.location.size(); count++) {
final String padding = "0000000000";
s = this.location.get(count).toString();
private int[][] dp = new int[INITIAL_BUFFER_SIZE][4];
// private int lastDPPos = 0; // TBD - not yet used
private final StringBuffer text = new StringBuffer();
- private int startx, starty;
- private int tls, tws;
+ private int startx;
+ private int starty;
+ private int tls;
+ private int tws;
private final boolean combined = false;
void addChar(char ch) {
int borderStartX = bm.getStartX();
int borderStartY = bm.getStartY();
- int x, y;
+ int x;
+ int y;
if (horz && startOrBefore) { // BEFORE
x = borderStartX;
y = borderStartY;
y = borderStartY;
}
- int dx, dy, length, startType, endType;
+ int dx;
+ int dy;
+ int length;
+ int startType;
+ int endType;
if (horz) {
length = borderWidth;
dx = 1;
preparePainting();
Shape clip = getClip();
- Rectangle2D usrClipBounds, usrBounds;
+ Rectangle2D usrClipBounds;
+ Rectangle2D usrBounds;
usrBounds = shape.getBounds2D();
if (clip != null) {
usrClipBounds = clip.getBounds2D();
double usrW = usrBounds.getWidth();
double usrH = usrBounds.getHeight();
- Rectangle devShapeBounds, devClipBounds, devBounds;
+ Rectangle devShapeBounds;
+ Rectangle devClipBounds;
+ Rectangle devBounds;
AffineTransform at = getTransform();
devShapeBounds = at.createTransformedShape(shape).getBounds();
if (clip != null) {
final byte[] rgb = new byte[devW * devH * 3];
final int[] line = new int[devW];
final byte[] mask;
- int x, y, val, rgbIdx = 0;
+ int x;
+ int y;
+ int val;
+ int rgbIdx = 0;
if (pcm.hasAlpha()) {
mask = new byte[devW * devH];
public class FileCompare {
- private String referenceDirectory, testDirectory;
+ private String referenceDirectory;
+ private String testDirectory;
private String[] filenameList;
private String filenames;
*/
private static Color parseAsJavaAWTColor(String value)
throws PropertyException {
- float red = 0.0f, green = 0.0f, blue = 0.0f;
+ float red = 0.0f;
+ float green = 0.0f;
+ float blue = 0.0f;
int poss = value.indexOf("[");
int pose = value.indexOf("]");
try {
} else {
alpha = 0xFF;
}
- int red = 0, green = 0, blue = 0;
+ int red = 0;
+ int green = 0;
+ int blue = 0;
if ((len == 4) || (len == 5)) {
//multiply by 0x11 = 17 = 255/15
red = Integer.parseInt(value.substring(1, 2), 16) * 0x11;
}
private void setLocale(String name) {
- String language = "", country = "", variant = "";
+ String language = "";
+ String country = "";
+ String variant = "";
if (name.length() > 1) {
int nextIndex = name.indexOf('_', 1);
if (nextIndex == -1) {