aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/FObj.java
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2013-04-09 17:31:41 +0000
committerVincent Hennebert <vhennebert@apache.org>2013-04-09 17:31:41 +0000
commit37ea66b1918a88490046c51ed1ac8acd49c661b7 (patch)
treee019cba719102e952845903812fb97521c7ec0e2 /src/java/org/apache/fop/fo/FObj.java
parentce39d4c2fb899be5d8d705fe72e0153fde21e592 (diff)
downloadxmlgraphics-fop-37ea66b1918a88490046c51ed1ac8acd49c661b7.tar.gz
xmlgraphics-fop-37ea66b1918a88490046c51ed1ac8acd49c661b7.zip
Cosmetics only: enabled Checkstyle ParenPad rule and fixed corresponding violations
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1466146 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/FObj.java')
-rw-r--r--src/java/org/apache/fop/fo/FObj.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/java/org/apache/fop/fo/FObj.java b/src/java/org/apache/fop/fo/FObj.java
index e7b4fc2e9..96b817de3 100644
--- a/src/java/org/apache/fop/fo/FObj.java
+++ b/src/java/org/apache/fop/fo/FObj.java
@@ -608,14 +608,14 @@ public abstract class FObj extends FONode implements Constants {
*/
public void setBidiLevel(int bidiLevel) {
assert bidiLevel >= 0;
- if ( bidiLevel >= 0 ) {
- if ( ( this.bidiLevel < 0 ) || ( bidiLevel < this.bidiLevel ) ) {
+ if (bidiLevel >= 0) {
+ if ((this.bidiLevel < 0) || (bidiLevel < this.bidiLevel)) {
this.bidiLevel = bidiLevel;
- if ( parent != null ) {
+ if (parent != null) {
FObj foParent = (FObj) parent;
int parentBidiLevel = foParent.getBidiLevel();
- if ( ( parentBidiLevel < 0 ) || ( bidiLevel < parentBidiLevel ) ) {
- foParent.setBidiLevel ( bidiLevel );
+ if ((parentBidiLevel < 0) || (bidiLevel < parentBidiLevel)) {
+ foParent.setBidiLevel (bidiLevel);
}
}
}
@@ -639,10 +639,10 @@ public abstract class FObj extends FONode implements Constants {
* any ancestor
*/
public int getBidiLevelRecursive() {
- for ( FONode fn = this; fn != null; fn = fn.getParent() ) {
- if ( fn instanceof FObj ) {
- int level = ( (FObj) fn).getBidiLevel();
- if ( level >= 0 ) {
+ for (FONode fn = this; fn != null; fn = fn.getParent()) {
+ if (fn instanceof FObj) {
+ int level = ((FObj) fn).getBidiLevel();
+ if (level >= 0) {
return level;
}
}