Skip to content

Commit

Permalink
Chore not core : upgrade spotless and google java format and apply
Browse files Browse the repository at this point in the history
Only formatting !

Change-Id: I4aec08b5f4fd8e62f998f3d7c36e00c350d7285f
  • Loading branch information
cvagner committed Oct 23, 2023
1 parent c9f0732 commit 2e9b651
Show file tree
Hide file tree
Showing 158 changed files with 2,103 additions and 710 deletions.
4 changes: 2 additions & 2 deletions concave-hull/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<spotless.version>2.13.0</spotless.version>
<spotless.version>2.40.0</spotless.version>
</properties>

<build>
Expand Down Expand Up @@ -44,7 +44,7 @@
<configuration>
<java>
<googleJavaFormat>
<version>1.11.0</version>
<version>1.18.1</version>
</googleJavaFormat>
</java>
</configuration>
Expand Down
4 changes: 2 additions & 2 deletions dxf/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<spotless.version>2.13.0</spotless.version>
<spotless.version>2.40.0</spotless.version>
</properties>

<build>
Expand Down Expand Up @@ -44,7 +44,7 @@
<configuration>
<java>
<googleJavaFormat>
<version>1.11.0</version>
<version>1.18.1</version>
</googleJavaFormat>
</java>
</configuration>
Expand Down
40 changes: 30 additions & 10 deletions dxf/src/main/java/org/kabeja/dxf/Bounds.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,42 +60,58 @@ public Bounds(Bounds b) {
this.min_z = b.getMinimumZ();
}

/** @return Returns the max_x. */
/**
* @return Returns the max_x.
*/
public double getMaximumX() {
return max_x;
}

/** @param max_x The max_x to set. */
/**
* @param max_x The max_x to set.
*/
public void setMaximumX(double max_x) {
this.max_x = max_x;
}

/** @return Returns the max_y. */
/**
* @return Returns the max_y.
*/
public double getMaximumY() {
return max_y;
}

/** @param max_y The max_y to set. */
/**
* @param max_y The max_y to set.
*/
public void setMaximumY(double max_y) {
this.max_y = max_y;
}

/** @return Returns the min_x. */
/**
* @return Returns the min_x.
*/
public double getMinimumX() {
return min_x;
}

/** @param min_x The min_x to set. */
/**
* @param min_x The min_x to set.
*/
public void setMinimumX(double min_x) {
this.min_x = min_x;
}

/** @return Returns the min_y. */
/**
* @return Returns the min_y.
*/
public double getMinimumY() {
return min_y;
}

/** @param min_y The min_y to set. */
/**
* @param min_y The min_y to set.
*/
public void setMinimumY(double min_y) {
this.min_y = min_y;
}
Expand Down Expand Up @@ -196,7 +212,9 @@ public double getDepth() {
return Math.abs(getMaximumZ() - getMinimumZ());
}

/** @return Returns the set. */
/**
* @return Returns the set.
*/
public boolean isValid() {
// later 3D bounds
// if ((this.max_x == Double.NEGATIVE_INFINITY)
Expand All @@ -217,7 +235,9 @@ public boolean isValid() {
return set;
}

/** @param set The set to set. */
/**
* @param set The set to set.
*/
public void setValid(boolean set) {
this.set = set;
}
Expand Down
4 changes: 3 additions & 1 deletion dxf/src/main/java/org/kabeja/dxf/DXF3DFace.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

import org.kabeja.math.MathUtils;

/** @author simon */
/**
* @author simon
*/
public class DXF3DFace extends DXFSolid {
public String getType() {
return DXFConstants.ENTITY_TYPE_3DFACE;
Expand Down
4 changes: 3 additions & 1 deletion dxf/src/main/java/org/kabeja/dxf/DXF3DSolid.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
*/
package org.kabeja.dxf;

/** @author <a href="mailto:[email protected]>Simon Mieth</a> */
/**
* @author <a href="mailto:[email protected]>Simon Mieth</a>
*/
public class DXF3DSolid extends DXFRegion {
/* (non-Javadoc)
* @see de.miethxml.kabeja.dxf.DXFEntity#getType()
Expand Down
28 changes: 21 additions & 7 deletions dxf/src/main/java/org/kabeja/dxf/DXFArc.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import org.kabeja.math.MathUtils;
import org.kabeja.math.ParametricPlane;

/** @author <a href="mailto:[email protected]>Simon Mieth</a> */
/**
* @author <a href="mailto:[email protected]>Simon Mieth</a>
*/
public class DXFArc extends DXFEntity {
private Point center;
private double radius;
Expand All @@ -20,32 +22,44 @@ public DXFArc() {
center = new Point();
}

/** @return Returns the end_angle. */
/**
* @return Returns the end_angle.
*/
public double getEndAngle() {
return end_angle;
}

/** @param end_angle The end_angle to set. */
/**
* @param end_angle The end_angle to set.
*/
public void setEndAngle(double end_angle) {
this.end_angle = end_angle;
}

/** @return Returns the radius. */
/**
* @return Returns the radius.
*/
public double getRadius() {
return radius;
}

/** @param radius The radius to set. */
/**
* @param radius The radius to set.
*/
public void setRadius(double radius) {
this.radius = radius;
}

/** @return Returns the start_angle. */
/**
* @return Returns the start_angle.
*/
public double getStartAngle() {
return start_angle;
}

/** @param start_angle The start_angle to set. */
/**
* @param start_angle The start_angle to set.
*/
public void setStartAngle(double start_angle) {
this.start_angle = start_angle;
}
Expand Down
4 changes: 3 additions & 1 deletion dxf/src/main/java/org/kabeja/dxf/DXFAttrib.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
*/
package org.kabeja.dxf;

/** @author <a href="mailto:[email protected]>Simon Mieth</a> */
/**
* @author <a href="mailto:[email protected]>Simon Mieth</a>
*/
public class DXFAttrib extends DXFText {
public DXFAttrib() {}

Expand Down
48 changes: 36 additions & 12 deletions dxf/src/main/java/org/kabeja/dxf/DXFBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
import java.util.Iterator;
import org.kabeja.dxf.helpers.Point;

/** @author <a href="mailto:[email protected]>Simon Mieth</a> */
/**
* @author <a href="mailto:[email protected]>Simon Mieth</a>
*/
public class DXFBlock {
public static String TYPE = "BLOCK";
private Point referencePoint;
Expand Down Expand Up @@ -58,22 +60,30 @@ public Bounds getBounds() {
return bounds;
}

/** @return Returns the description. */
/**
* @return Returns the description.
*/
public String getDescription() {
return description;
}

/** @param description The description to set. */
/**
* @param description The description to set.
*/
public void setDescription(String description) {
this.description = description;
}

/** @return Returns the p. */
/**
* @return Returns the p.
*/
public Point getReferencePoint() {
return referencePoint;
}

/** @param p The p to set. */
/**
* @param p The p to set.
*/
public void setReferencePoint(Point p) {
this.referencePoint = p;
}
Expand All @@ -82,32 +92,44 @@ public void addDXFEntity(DXFEntity entity) {
entities.add(entity);
}

/** @return a iterator over all entities of this block */
/**
* @return a iterator over all entities of this block
*/
public Iterator<DXFEntity> getDXFEntitiesIterator() {
return entities.iterator();
}

/** @return Returns the layerID. */
/**
* @return Returns the layerID.
*/
public String getLayerID() {
return layerID;
}

/** @param layerID The layerID to set. */
/**
* @param layerID The layerID to set.
*/
public void setLayerID(String layerID) {
this.layerID = layerID;
}

/** @return Returns the name. */
/**
* @return Returns the name.
*/
public String getName() {
return name;
}

/** @param name The name to set. */
/**
* @param name The name to set.
*/
public void setName(String name) {
this.name = name;
}

/** @param doc The doc to set. */
/**
* @param doc The doc to set.
*/
public void setDXFDocument(DXFDocument doc) {
this.doc = doc;

Expand All @@ -119,7 +141,9 @@ public void setDXFDocument(DXFDocument doc) {
}
}

/** @return the parent document */
/**
* @return the parent document
*/
public DXFDocument getDXFDocument() {
return this.doc;
}
Expand Down
4 changes: 3 additions & 1 deletion dxf/src/main/java/org/kabeja/dxf/DXFBody.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
*/
package org.kabeja.dxf;

/** @author <a href="mailto:[email protected]>Simon Mieth</a> */
/**
* @author <a href="mailto:[email protected]>Simon Mieth</a>
*/
public class DXFBody extends DXFRegion {
/* (non-Javadoc)
* @see de.miethxml.kabeja.dxf.DXFEntity#getType()
Expand Down
8 changes: 6 additions & 2 deletions dxf/src/main/java/org/kabeja/dxf/DXFCircle.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
import org.kabeja.dxf.helpers.Point;
import org.kabeja.math.ParametricPlane;

/** @author <a href="mailto:[email protected]>Simon Mieth</a> */
/**
* @author <a href="mailto:[email protected]>Simon Mieth</a>
*/
public class DXFCircle extends DXFEntity {
private Point center;
private double radius;
Expand All @@ -30,7 +32,9 @@ public double getRadius() {
return radius;
}

/** @param radius The radius to set. */
/**
* @param radius The radius to set.
*/
public void setRadius(double radius) {
this.radius = radius;
}
Expand Down
4 changes: 3 additions & 1 deletion dxf/src/main/java/org/kabeja/dxf/DXFColor.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
*/
package org.kabeja.dxf;

/** @author <a href="mailto:[email protected]>Simon Mieth</a> */
/**
* @author <a href="mailto:[email protected]>Simon Mieth</a>
*/
public class DXFColor {
private static int[][] rgbs = {
{255, 0, 0},
Expand Down
4 changes: 3 additions & 1 deletion dxf/src/main/java/org/kabeja/dxf/DXFConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

import org.kabeja.dxf.helpers.Vector;

/** @author <a href="mailto:[email protected]>Simon Mieth</a> */
/**
* @author <a href="mailto:[email protected]>Simon Mieth</a>
*/
public class DXFConstants {
public static final int COMMAND_CODE = 0;
public static final String DEFAULT_LAYER = "0";
Expand Down
Loading

0 comments on commit 2e9b651

Please sign in to comment.