diff options
author | Jeremias Maerki <jeremias@apache.org> | 2010-11-15 15:35:12 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2010-11-15 15:35:12 +0000 |
commit | a42084359926741824e490653c1e5957af5ead74 (patch) | |
tree | 7b2f8c87fc23bb7dca64a7c5021ecfbb4e635f21 /src | |
parent | f133bab5a846c87a88eb697fee4b659122c46bdb (diff) | |
download | xmlgraphics-fop-a42084359926741824e490653c1e5957af5ead74.tar.gz xmlgraphics-fop-a42084359926741824e490653c1e5957af5ead74.zip |
Added semicolon for enum to avoid problems with qdox and Maven.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_TrueTypeInPostScript@1035313 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java b/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java index 7614a267b..ec9a51256 100644 --- a/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java +++ b/src/java/org/apache/fop/fonts/truetype/TTFSubSetFile.java @@ -35,7 +35,7 @@ import java.util.Map; public class TTFSubSetFile extends TTFFile { private static enum OperatingMode { - PDF, POSTSCRIPT_GLYPH_DIRECTORY + PDF, POSTSCRIPT_GLYPH_DIRECTORY; } private byte[] output = null; @@ -869,15 +869,15 @@ public class TTFSubSetFile extends TTFFile { * Read a unsigned short value at given position */ private int readUShort(int pos) { - int ret = (int)output[pos]; + int ret = output[pos]; if (ret < 0) { ret += 256; } ret = ret << 8; - if ((int)output[pos + 1] < 0) { - ret |= (int)output[pos + 1] + 256; + if (output[pos + 1] < 0) { + ret |= output[pos + 1] + 256; } else { - ret |= (int)output[pos + 1]; + ret |= output[pos + 1]; } return ret; @@ -900,7 +900,7 @@ public class TTFSubSetFile extends TTFFile { */ private int maxPow2(int max) { int i = 0; - while (Math.pow(2, (double)i) < max) { + while (Math.pow(2, i) < max) { i++; } @@ -908,7 +908,7 @@ public class TTFSubSetFile extends TTFFile { } private int log2(int num) { - return (int)(Math.log((double)num) / Math.log(2)); + return (int)(Math.log(num) / Math.log(2)); } @@ -927,10 +927,10 @@ public class TTFSubSetFile extends TTFFile { long sum = 0; for (int i = 0; i < size; i += 4) { - int l = (int)(data[start + i] << 24); - l += (int)(data[start + i + 1] << 16); - l += (int)(data[start + i + 2] << 16); - l += (int)(data[start + i + 3] << 16); + int l = (data[start + i] << 24); + l += (data[start + i + 1] << 16); + l += (data[start + i + 2] << 16); + l += (data[start + i + 3] << 16); sum += l; if (sum > 0xffffffff) { sum = sum - 0xffffffff; |