Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Code review changes (See below).
Browse files Browse the repository at this point in the history
Refactor method to use ternary operator.
Assume a non-nullable argument in copy trans internal method.
  • Loading branch information
Carlos A. Munoz committed Sep 4, 2013
1 parent 2832102 commit d1dae05
Showing 1 changed file with 2 additions and 6 deletions.
Expand Up @@ -375,11 +375,7 @@ ContentState determineContentState(boolean contextMatches, boolean projectMatche
*/
static boolean shouldReject(boolean match, HCopyTransOptions.ConditionRuleAction action )
{
if( !match && action == REJECT )
{
return true;
}
return false;
return !match && action == REJECT;
}

/**
Expand Down Expand Up @@ -499,7 +495,7 @@ private void copyTransForLocale(HDocument document, HLocale locale, HCopyTransOp
*/
private static boolean shouldOverwrite(HTextFlowTarget currentlyStored, ContentState matchState)
{
if( matchState == null || matchState == New )
if( matchState == New )
{
return false;
}
Expand Down

0 comments on commit d1dae05

Please sign in to comment.