2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty) Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg) Of course this effort to remove trailing spaces has no functional implications. Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135 In the meantime I did some refactoring also in *.java and *.groovy files : ){ => ) { if( => if ( while( => while ( }else => } else else{ => else { switch( => switch ( try{ => try { }catch => } catch catch( => catch ( }finally{ => } finally { So these changes are also in this commit, should not be a problem anyway. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -5,9 +5,9 @@
|
||||
# to you under the Apache License, Version 2.0 (the
|
||||
# "License"); you may not use this file except in compliance
|
||||
# with the License. You may obtain a copy of the License at
|
||||
#
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing,
|
||||
# software distributed under the License is distributed on an
|
||||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
|
||||
@@ -441,7 +441,7 @@ public class GenericValue extends GenericEntity implements Reusable {
|
||||
while (relItr.hasNext()) {
|
||||
ModelRelation relation = relItr.next();
|
||||
if ("one".equalsIgnoreCase(relation.getType())) {
|
||||
// see if the related value exists
|
||||
// see if the related value exists
|
||||
Map<String, Object> fields = FastMap.newInstance();
|
||||
for (int i = 0; i < relation.getKeyMapsSize(); i++) {
|
||||
ModelKeyMap keyMap = relation.getKeyMap(i);
|
||||
|
||||
@@ -58,7 +58,7 @@ public class GenericValueHtmlWrapper extends GenericValue {
|
||||
}
|
||||
|
||||
/* NOTE: this is NOT used because there are certain FTL files that call services and things, and this messes those up, so only overriding the Map.get(Object) method to get use of this as a Map
|
||||
* Override the basic get method, which all other get methods call so we only need to do this one (though most important for the Map.get(Object) and the getString() methods
|
||||
* Override the basic get method, which all other get methods call so we only need to do this one (though most important for the Map.get(Object) and the getString() methods
|
||||
public Object get(String name) {
|
||||
Object value = super.get(name);
|
||||
if (value instanceof String) {
|
||||
|
||||
@@ -108,7 +108,7 @@ public class XaPoolConnectionFactory {
|
||||
// set the transaction manager in the pool
|
||||
pds.setTransactionManager(TransactionFactory.getTransactionManager());
|
||||
|
||||
// configure the pool settings
|
||||
// configure the pool settings
|
||||
try {
|
||||
pds.setMaxSize(Integer.parseInt(jotmJdbcElement.getAttribute("pool-maxsize")));
|
||||
pds.setMinSize(Integer.parseInt(jotmJdbcElement.getAttribute("pool-minsize")));
|
||||
|
||||
@@ -658,7 +658,7 @@ public class SqlJdbcUtil {
|
||||
}
|
||||
|
||||
private static Object deserializeField(byte[] fieldBytes, int ind, ModelField curField) throws GenericDataSourceException {
|
||||
// NOTE DEJ20071022: the following code is to convert the byte[] back into an object; if that fails
|
||||
// NOTE DEJ20071022: the following code is to convert the byte[] back into an object; if that fails
|
||||
//just return the byte[]; this was for the ByteWrapper thing which is now deprecated, so this may
|
||||
//be removed in the near future to enhance performance
|
||||
InputStream binaryInput = null;
|
||||
|
||||
Reference in New Issue
Block a user