Skip to content
Snippets Groups Projects
Commit 198c36a3 authored by Julian Hochstetter's avatar Julian Hochstetter
Browse files

Merge branch 'master' of gitorious@scm.thm.de:arsnova/arsnova-war.git

parents 8620e24a 8cf56297
Branches
Tags
No related merge requests found
...@@ -87,16 +87,18 @@ ...@@ -87,16 +87,18 @@
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId> <artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.4</version> <version>2.4</version>
<configuration> <configuration></configuration>
</configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<configuration> <configuration></configuration>
</plugin>
</configuration> <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.5.2</version>
<configuration></configuration>
</plugin> </plugin>
</plugins> </plugins>
</reporting> </reporting>
......
...@@ -109,7 +109,7 @@ public class CouchDBDao implements IDatabaseDao { ...@@ -109,7 +109,7 @@ public class CouchDBDao implements IDatabaseDao {
*/ */
@Override @Override
public void cleanFeedbackVotes(int cleanupFeedbackDelay) { public void cleanFeedbackVotes(int cleanupFeedbackDelay) {
final long timelimitInMillis = 60000 * cleanupFeedbackDelay; final long timelimitInMillis = 60000 * (long) cleanupFeedbackDelay;
final long maxAllowedTimeInMillis = System.currentTimeMillis() - timelimitInMillis; final long maxAllowedTimeInMillis = System.currentTimeMillis() - timelimitInMillis;
Map<String, Set<String>> affectedUsers = new HashMap<String, Set<String>>(); Map<String, Set<String>> affectedUsers = new HashMap<String, Set<String>>();
...@@ -537,7 +537,7 @@ public class CouchDBDao implements IDatabaseDao { ...@@ -537,7 +537,7 @@ public class CouchDBDao implements IDatabaseDao {
JSONObject json = JSONObject.fromObject(loggedIn); JSONObject json = JSONObject.fromObject(loggedIn);
Document doc = new Document(json); Document doc = new Document(json);
if (doc.getId() == "") { if (doc.getId().isEmpty()) {
// If this is a new user without a logged_in document, we have to remove the following // If this is a new user without a logged_in document, we have to remove the following
// pre-filled fields. Otherwise, CouchDB will take these empty fields as genuine // pre-filled fields. Otherwise, CouchDB will take these empty fields as genuine
// identifiers, and will throw errors afterwards. // identifiers, and will throw errors afterwards.
......
...@@ -70,6 +70,7 @@ public class User implements Serializable { ...@@ -70,6 +70,7 @@ public class User implements Serializable {
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
if (obj == null || ! obj.getClass().equals(this.getClass())) return false;
User other = (User) obj; User other = (User) obj;
return this.username.equals(other.username) && this.type.equals(other.type); return this.username.equals(other.username) && this.type.equals(other.type);
} }
......
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
<item name="The Team" href="team-list.html" /> <item name="The Team" href="team-list.html" />
</menu> </menu>
<menu name="Documentation"> <menu name="Documentation">
<item name="Dependencies" href="dependencies.html" />
<item name="Installation" href="installation.html" /> <item name="Installation" href="installation.html" />
<item name="Dependencies" href="dependencies.html" />
<item name="API Docs" href="apidocs/index.html" /> <item name="API Docs" href="apidocs/index.html" />
</menu> </menu>
<menu name="Further Information"> <menu name="Further Information">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment