cosmetic
This commit is contained in:
parent
e9bcb1b664
commit
612f078adb
6 changed files with 11 additions and 59 deletions
|
|
@ -1,3 +0,0 @@
|
||||||
build
|
|
||||||
target
|
|
||||||
.DS_Store
|
|
||||||
54
pom.xml
54
pom.xml
|
|
@ -11,14 +11,14 @@
|
||||||
<name>Knut Forkalsrud</name>
|
<name>Knut Forkalsrud</name>
|
||||||
<id>knut</id>
|
<id>knut</id>
|
||||||
<email>knut@forkalsrud.org</email>
|
<email>knut@forkalsrud.org</email>
|
||||||
<url>http://forkalsrud.org:8080/~knut/</url>
|
<url>http://aha.forkalsrud.org:8080/~knut/</url>
|
||||||
<timezone>PST</timezone>
|
<timezone>PST</timezone>
|
||||||
</developer>
|
</developer>
|
||||||
<developer>
|
<developer>
|
||||||
<name>Erik Forkalsrud</name>
|
<name>Erik Forkalsrud</name>
|
||||||
<id>erik</id>
|
<id>erik</id>
|
||||||
<email>erik@forkalsrud.org</email>
|
<email>erik@forkalsrud.org</email>
|
||||||
<url>http://forkalsrud.org:8080/~erik/</url>
|
<url>http://aha.forkalsrud.org:8080/~erik/</url>
|
||||||
<timezone>PST</timezone>
|
<timezone>PST</timezone>
|
||||||
</developer>
|
</developer>
|
||||||
</developers>
|
</developers>
|
||||||
|
|
@ -27,8 +27,8 @@
|
||||||
</properties>
|
</properties>
|
||||||
<scm>
|
<scm>
|
||||||
<url>forkalsrud.org</url>
|
<url>forkalsrud.org</url>
|
||||||
<developerConnection>scm:git:ssh://forkalsrud.org/home/gitroot/album.git</developerConnection>
|
<developerConnection>scm:git:git@code.forkalsrud.org:knut/album.git</developerConnection>
|
||||||
<connection>scm:git:ssh://forkalsrud.org/home/gitroot/album.git</connection>
|
<connection>scm:git:git@code.forkalsrud.org:knut/album.git</connection>
|
||||||
</scm>
|
</scm>
|
||||||
<build>
|
<build>
|
||||||
<finalName>photo</finalName>
|
<finalName>photo</finalName>
|
||||||
|
|
@ -52,44 +52,6 @@
|
||||||
<stopPort/>
|
<stopPort/>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-eclipse-plugin</artifactId>
|
|
||||||
<version>2.9</version>
|
|
||||||
<configuration>
|
|
||||||
<wtpversion>1.5</wtpversion>
|
|
||||||
<wtpContextName>photo</wtpContextName>
|
|
||||||
<wtpdefaultserver>J2EE Preview</wtpdefaultserver>
|
|
||||||
<additionalProjectnatures>
|
|
||||||
<projectnature>org.maven.ide.eclipse.maven2Nature</projectnature>
|
|
||||||
<projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
|
|
||||||
<projectnature>org.eclipse.wst.common.project.facet.core.nature</projectnature>
|
|
||||||
<projectnature>org.eclipse.wst.common.modulecore.ModuleCoreNature</projectnature>
|
|
||||||
<projectnature>org.eclipse.jem.workbench.JavaEMFNature</projectnature>
|
|
||||||
<projectnature>org.eclipse.wst.jsdt.core.jsNature</projectnature>
|
|
||||||
</additionalProjectnatures>
|
|
||||||
<additionalBuildcommands>
|
|
||||||
<buildCommand><name>org.springframework.ide.eclipse.core.springbuilder</name></buildCommand>
|
|
||||||
<buildCommand><name>org.eclipse.wst.jsdt.core.javascriptValidator</name></buildCommand>
|
|
||||||
<buildCommand><name>org.eclipse.wst.common.project.facet.core.builder</name></buildCommand>
|
|
||||||
<buildCommand><name>org.eclipse.wst.validation.validationbuilder</name></buildCommand>
|
|
||||||
</additionalBuildcommands>
|
|
||||||
<additionalProjectFacets>
|
|
||||||
<jst.java>5.0</jst.java>
|
|
||||||
<jst.web>2.5</jst.web>
|
|
||||||
<wst.jsdt.web>1.0</wst.jsdt.web>
|
|
||||||
</additionalProjectFacets>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
<!--
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
|
||||||
<artifactId>maven-deploy-plugin</artifactId>
|
|
||||||
<configuration>
|
|
||||||
<repositoryId>central</repositoryId>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
-->
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
@ -112,9 +74,9 @@
|
||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>commons-lang</groupId>
|
<groupId>org.apache.commons</groupId>
|
||||||
<artifactId>commons-lang</artifactId>
|
<artifactId>commons-lang3</artifactId>
|
||||||
<version>2.6</version>
|
<version>3.20.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.drewnoakes</groupId>
|
<groupId>com.drewnoakes</groupId>
|
||||||
|
|
@ -130,7 +92,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
<artifactId>junit</artifactId>
|
<artifactId>junit</artifactId>
|
||||||
<version>4.11</version>
|
<version>4.13.1</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
*/
|
*/
|
||||||
package org.forkalsrud.album.db;
|
package org.forkalsrud.album.db;
|
||||||
|
|
||||||
import java.nio.charset.Charset;
|
import java.nio.charset.StandardCharsets;
|
||||||
|
|
||||||
import org.forkalsrud.album.web.CachedImage;
|
import org.forkalsrud.album.web.CachedImage;
|
||||||
|
|
||||||
|
|
@ -23,8 +23,6 @@ import com.sleepycat.je.Transaction;
|
||||||
*/
|
*/
|
||||||
public class ThumbnailDatabase extends TupleBinding<CachedImage> {
|
public class ThumbnailDatabase extends TupleBinding<CachedImage> {
|
||||||
|
|
||||||
private static Charset UTF8 = Charset.forName("utf-8");
|
|
||||||
|
|
||||||
private Environment environment;
|
private Environment environment;
|
||||||
private Database db;
|
private Database db;
|
||||||
|
|
||||||
|
|
@ -76,7 +74,7 @@ public class ThumbnailDatabase extends TupleBinding<CachedImage> {
|
||||||
|
|
||||||
private DatabaseEntry key(String key) {
|
private DatabaseEntry key(String key) {
|
||||||
DatabaseEntry returnValue = new DatabaseEntry();
|
DatabaseEntry returnValue = new DatabaseEntry();
|
||||||
returnValue.setData(key.getBytes(UTF8));
|
returnValue.setData(key.getBytes(StandardCharsets.UTF_8));
|
||||||
return returnValue;
|
return returnValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,6 @@ package org.forkalsrud.album.exif;
|
||||||
import java.awt.image.BufferedImage;
|
import java.awt.image.BufferedImage;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.text.DecimalFormat;
|
|
||||||
import java.text.NumberFormat;
|
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,12 +6,9 @@ import java.io.InputStream;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.io.LineNumberReader;
|
import java.io.LineNumberReader;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.nio.file.Files;
|
|
||||||
import java.nio.file.Path;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
import java.util.stream.Stream;
|
|
||||||
|
|
||||||
import org.apache.commons.io.IOUtils;
|
import org.apache.commons.io.IOUtils;
|
||||||
import org.forkalsrud.album.db.Chunk;
|
import org.forkalsrud.album.db.Chunk;
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import org.forkalsrud.album.exif.Dimension;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.assertThat;
|
import static org.hamcrest.MatcherAssert.assertThat;
|
||||||
import static org.hamcrest.core.IsEqual.equalTo;
|
import static org.hamcrest.core.IsEqual.equalTo;
|
||||||
import static org.hamcrest.core.IsInstanceOf.instanceOf;
|
import static org.hamcrest.core.IsInstanceOf.instanceOf;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue