Compare commits

...

10 Commits

Author SHA1 Message Date
Claridtimo d556d31ff7 build: target Java 8 instead of 7
JDK 20+ removed -source/-target 7, so the module no longer compiled on
modern JDKs. Bump source.level to 8 (lowest still supported).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 11:39:45 +12:00
Michael Bayne b8fea743ee Fix Line.isEmpty().
Closes #27.
2017-11-16 10:57:59 -08:00
Michael Bayne 3e2002ead7 Don't try to test gh-pages branch. 2017-06-04 09:16:45 -07:00
Michael Bayne 0a0a4ecdd0 Update version to 1.4.3. 2017-06-04 09:14:24 -07:00
Michael Bayne 16bed1e75a [maven-release-plugin] prepare for next development iteration 2017-06-04 09:08:57 -07:00
Michael Bayne a0a2a32ea1 [maven-release-plugin] prepare release pythagoras-1.4.3 2017-06-04 09:08:49 -07:00
Michael Bayne e3d3618ebf Move prereqs down. 2015-11-15 07:27:38 -08:00
Michael Bayne c7ae29ec0c Better toString() for AffineTransform.
If it's just a translation transform, only show the translation, and if it's an
identity transform, just say 'ident'.
2015-11-15 07:27:02 -08:00
Michael Bayne 39ff9717dc Drop JDK6, add JDK8, other Travis hygiene. 2015-10-05 14:53:49 -07:00
Michael Bayne 18e16dc048 Add Sonatype plugin for easier releases. 2015-10-05 14:48:55 -07:00
7 changed files with 42 additions and 12 deletions
+11 -1
View File
@@ -1,4 +1,14 @@
language: java
sudo: false
jdk:
- openjdk6
- openjdk7
- oraclejdk8
cache:
directories:
- '$HOME/.m2/repository'
branches:
except:
- gh-pages
+2 -2
View File
@@ -8,7 +8,7 @@ the [Clyde] library.
* [API documentation] is available.
* Pythagoras can be obtained via Maven Central: `com.samskivert:pythagoras:1.4.1`.
* Pythagoras can be obtained via Maven Central: `com.samskivert:pythagoras:1.4.3`.
Or you can download the pre-built [jar file].
## Design
@@ -57,6 +57,6 @@ in the `LICENSE` file and at http://www.apache.org/licenses/LICENSE-2.0 on the
web.
[API documentation]: http://samskivert.github.com/pythagoras/apidocs/overview-summary.html
[jar file]: http://repo2.maven.org/maven2/com/samskivert/pythagoras/1.4.1/pythagoras-1.4.1.jar
[jar file]: http://repo2.maven.org/maven2/com/samskivert/pythagoras/1.4.3/pythagoras-1.4.3.jar
[Apache Harmony]: http://harmony.apache.org/
[Clyde]: https://github.com/threerings/clyde
+19 -5
View File
@@ -20,10 +20,6 @@
<url>http://github.com/samskivert/pythagoras/issues</url>
</issueManagement>
<prerequisites>
<maven>3.3.0</maven>
</prerequisites>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
@@ -46,8 +42,12 @@
<url>http://github.com/samskivert/pythagoras/</url>
</scm>
<prerequisites>
<maven>3.3.0</maven>
</prerequisites>
<properties>
<source.level>1.7</source.level>
<source.level>8</source.level>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
@@ -104,6 +104,7 @@
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
@@ -114,6 +115,19 @@
<additionalparam>-Xdoclint:all -Xdoclint:-missing</additionalparam>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.6</version>
<extensions>true</extensions>
<inherited>false</inherited>
<configuration>
<serverId>ossrh-releases</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<stagingProfileId>aaa740f9c5c260</stagingProfileId>
</configuration>
</plugin>
</plugins>
</build>
+1 -1
View File
@@ -89,7 +89,7 @@ public abstract class AbstractLine implements ILine
@Override // from interface IShape
public boolean isEmpty () {
return false;
return true;
}
@Override // from interface IShape
@@ -380,8 +380,11 @@ public class AffineTransform extends AbstractTransform
@Override
public String toString () {
return "affine [" + MathUtil.toString(m00) + " " + MathUtil.toString(m01) + " " +
if (m00 != 1 || m01 != 0 || m10 != 0 || m11 != 1) return "affine [" +
MathUtil.toString(m00) + " " + MathUtil.toString(m01) + " " +
MathUtil.toString(m10) + " " + MathUtil.toString(m11) + " " + translation() + "]";
else if (tx != 0 || ty != 0) return "trans " + translation();
else return "ident";
}
// we don't publicize this because it might encourage someone to do something stupid like
+1 -1
View File
@@ -89,7 +89,7 @@ public abstract class AbstractLine implements ILine
@Override // from interface IShape
public boolean isEmpty () {
return false;
return true;
}
@Override // from interface IShape
@@ -380,8 +380,11 @@ public class AffineTransform extends AbstractTransform
@Override
public String toString () {
return "affine [" + MathUtil.toString(m00) + " " + MathUtil.toString(m01) + " " +
if (m00 != 1 || m01 != 0 || m10 != 0 || m11 != 1) return "affine [" +
MathUtil.toString(m00) + " " + MathUtil.toString(m01) + " " +
MathUtil.toString(m10) + " " + MathUtil.toString(m11) + " " + translation() + "]";
else if (tx != 0 || ty != 0) return "trans " + translation();
else return "ident";
}
// we don't publicize this because it might encourage someone to do something stupid like