You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2015/08/26 12:43:48 UTC
svn commit: r1697878 [2/2] - in /chemistry/opencmis/trunk:
chemistry-opencmis-android/chemistry-opencmis-android-client/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/atompub/
chemistry-opencmis-android/chemistry-opencmis-android-clien...
Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/POSTHttpServletRequestWrapper.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/POSTHttpServletRequestWrapper.java?rev=1697878&r1=1697877&r2=1697878&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/POSTHttpServletRequestWrapper.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/browser/POSTHttpServletRequestWrapper.java Wed Aug 26 10:43:47 2015
@@ -70,12 +70,12 @@ public final class POSTHttpServletReques
}
String filenameControl = HttpUtils.getStringParameter(this, Constants.CONTROL_FILENAME);
- if ((filenameControl) != null && (filenameControl.trim().length() > 0)) {
+ if (filenameControl != null && filenameControl.trim().length() > 0) {
filename = filenameControl;
}
String contentTypeControl = HttpUtils.getStringParameter(this, Constants.CONTROL_CONTENT_TYPE);
- if ((contentTypeControl != null) && (contentTypeControl.trim().length() > 0)) {
+ if (contentTypeControl != null && contentTypeControl.trim().length() > 0) {
contentType = contentTypeControl;
}
} else if (isFormUrlencodedContent(request)) {
Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/AbstractServiceCall.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/AbstractServiceCall.java?rev=1697878&r1=1697877&r2=1697878&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/AbstractServiceCall.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/AbstractServiceCall.java Wed Aug 26 10:43:47 2015
@@ -56,7 +56,7 @@ public abstract class AbstractServiceCal
*/
public boolean getBooleanParameter(HttpServletRequest request, String name, boolean def) {
String value = getStringParameter(request, name);
- if ((value == null) || (value.length() == 0)) {
+ if (value == null || value.length() == 0) {
return def;
}
@@ -68,7 +68,7 @@ public abstract class AbstractServiceCal
*/
public Boolean getBooleanParameter(HttpServletRequest request, String name) {
String value = getStringParameter(request, name);
- if ((value == null) || (value.length() == 0)) {
+ if (value == null || value.length() == 0) {
return null;
}
@@ -92,7 +92,7 @@ public abstract class AbstractServiceCal
*/
public BigInteger getBigIntegerParameter(HttpServletRequest request, String name) {
String value = getStringParameter(request, name);
- if ((value == null) || (value.length() == 0)) {
+ if (value == null || value.length() == 0) {
return null;
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/QueryStringHttpServletRequestWrapper.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/QueryStringHttpServletRequestWrapper.java?rev=1697878&r1=1697877&r2=1697878&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/QueryStringHttpServletRequestWrapper.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/QueryStringHttpServletRequestWrapper.java Wed Aug 26 10:43:47 2015
@@ -104,7 +104,7 @@ public class QueryStringHttpServletReque
@Override
public final String getParameter(String name) {
String[] values = parameters.get(name);
- if ((values == null) || (values.length == 0)) {
+ if (values == null || values.length == 0) {
return null;
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/ThresholdOutputStream.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/ThresholdOutputStream.java?rev=1697878&r1=1697877&r2=1697878&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/ThresholdOutputStream.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/shared/ThresholdOutputStream.java Wed Aug 26 10:43:47 2015
@@ -247,7 +247,7 @@ public class ThresholdOutputStream exten
return;
}
- if ((maxContentSize > -1) && (length + len > maxContentSize)) {
+ if (maxContentSize > -1 && length + len > maxContentSize) {
destroy(null);
throw new CmisConstraintException("Content too big!");
}
@@ -536,7 +536,7 @@ public class ThresholdOutputStream exten
@Override
public int read(byte[] b, int off, int len) {
- if ((pos >= bufSize) || (buf == null)) {
+ if (pos >= bufSize || buf == null) {
return -1;
}
Modified: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/AbstractWorkbenchIcon.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/AbstractWorkbenchIcon.java?rev=1697878&r1=1697877&r2=1697878&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/AbstractWorkbenchIcon.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/icons/AbstractWorkbenchIcon.java Wed Aug 26 10:43:47 2015
@@ -34,8 +34,8 @@ import org.apache.chemistry.opencmis.wor
public abstract class AbstractWorkbenchIcon implements Icon {
- protected final static Color DEFAULT_COLOR = new Color(0x33628c);
- protected final static Color DISABLED_COLOR = new Color(0x8e8f91);
+ protected static final Color DEFAULT_COLOR = new Color(0x33628c);
+ protected static final Color DISABLED_COLOR = new Color(0x8e8f91);
protected int width;
protected int height;
@@ -147,8 +147,8 @@ public abstract class AbstractWorkbenchI
BufferedImage img = new BufferedImage((int) Math.round(getIconWidth() * factor),
(int) Math.round(getIconHeight() * factor), BufferedImage.TYPE_INT_ARGB);
- double coef = Math.min(getIconWidth() * factor / getOrginalWidth(),
- getIconHeight() * factor / getOrginalHeight());
+ double coef = Math.min(getIconWidth() * factor / getOrginalWidth(), getIconHeight() * factor
+ / getOrginalHeight());
Graphics2D g2d = img.createGraphics();
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);