The following document contains the results of PMD's CPD 5.2.1.
| File | Line |
|---|---|
| wjhk\jupload2\filedata\helper\ImageHelper.java | 473 |
| wjhk\jupload2\filedata\helper\ImageHelper.java | 522 |
switch (this.quarterRotation) {
case 0:
case 2:
maxWidthBeforeRotation = this.uploadPolicy.getMaxWidth();
maxHeigthBeforeRotation = this.uploadPolicy.getMaxHeight();
widthBeforeRotation = sourceBufferedImage.getWidth();
heigthBeforeRotation = sourceBufferedImage.getHeight();
widthAfterRotation = sourceBufferedImage.getWidth();
heigthAfterRotation = sourceBufferedImage.getHeight();
break;
case 1:
case 3:
maxWidthBeforeRotation = this.uploadPolicy.getMaxHeight();
maxHeigthBeforeRotation = this.uploadPolicy.getMaxWidth();
widthBeforeRotation = sourceBufferedImage.getHeight();
heigthBeforeRotation = sourceBufferedImage.getWidth();
widthAfterRotation = sourceBufferedImage.getHeight();
heigthAfterRotation = sourceBufferedImage.getWidth();
break;
default:
throw new JUploadException("Invalid quarter rotation: <" + this.quarterRotation + ">");
} | |