Revision: 5730
http://sourceforge.net/p/jump-pilot/code/5730
Author: edso
Date: 2018-04-04 14:52:50 +0000 (Wed, 04 Apr 2018)
Log Message:
-----------
reformatted because of mixed tab/space indention
Advertising
Modified Paths:
--------------
core/trunk/src/com/vividsolutions/jump/feature/BasicFeature.java
Modified: core/trunk/src/com/vividsolutions/jump/feature/BasicFeature.java
===================================================================
--- core/trunk/src/com/vividsolutions/jump/feature/BasicFeature.java
2018-04-04 14:36:01 UTC (rev 5729)
+++ core/trunk/src/com/vividsolutions/jump/feature/BasicFeature.java
2018-04-04 14:52:50 UTC (rev 5730)
@@ -58,35 +58,38 @@
/**
- * A low-level accessor that is not normally used. It is called by
ViewSchemaPlugIn.
+ * A low-level accessor that is not normally used. It is called by
+ * ViewSchemaPlugIn.
*/
public void setAttributes(Object[] attributes) {
- Object[] attributesOld = this.attributes;
- this.attributes = attributes;
- if (attributes != null)
- if (attributesOld.length != attributes.length)
- modified = true;
- else {
- for (int i=0; i<attributes.length; i++) {
- if ( attributesOld[i] != null &&
attributesOld[i] != attributes[i]) {
- modified = true;
- }
- }
- }
+ Object[] attributesOld = this.attributes;
+ this.attributes = attributes;
+ if (attributes != null)
+ if (attributesOld.length != attributes.length)
+ modified = true;
+ else {
+ for (int i = 0; i < attributes.length; i++) {
+ if (attributesOld[i] != null && attributesOld[i] != attributes[i])
{
+ modified = true;
+ }
+ }
+ }
}
-
+
/**
* Sets the specified attribute.
*
- *@param attributeIndex the array index at which to put the new attribute
- *@param newAttribute the new attribute
+ * @param attributeIndex
+ * the array index at which to put the new attribute
+ * @param newAttribute
+ * the new attribute
*/
public void setAttribute(int attributeIndex, Object newAttribute) {
- modCount++;
- if (attributes[attributeIndex] != null || modCount > attributes.length)
{
- modified = true;
- }
- attributes[attributeIndex] = newAttribute;
+ modCount++;
+ if (attributes[attributeIndex] != null || modCount > attributes.length) {
+ modified = true;
+ }
+ attributes[attributeIndex] = newAttribute;
}
/**
@@ -125,10 +128,11 @@
}
/**
- * @param modified - allows the modified flag to be set or reset
+ * @param modified
+ * - allows the modified flag to be set or reset
*/
public void setModified(boolean modified) {
- this.modified = modified;
- modCount = 0;
+ this.modified = modified;
+ modCount = 0;
}
}
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel