Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
Paul-Christian Volkmer
ARSnova Backend
Commits
2a2eeb5f
Commit
2a2eeb5f
authored
12 years ago
by
Paul-Christian Volkmer
Browse files
Options
Downloads
Patches
Plain Diff
Satisfy find bugs by adding Serializable
parent
deaa7789
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/thm/arsnova/controller/CourseController.java
+4
-1
4 additions, 1 deletion
...main/java/de/thm/arsnova/controller/CourseController.java
src/main/java/de/thm/arsnova/services/SessionService.java
+4
-1
4 additions, 1 deletion
src/main/java/de/thm/arsnova/services/SessionService.java
with
8 additions
and
2 deletions
src/main/java/de/thm/arsnova/controller/CourseController.java
+
4
−
1
View file @
2a2eeb5f
...
...
@@ -18,6 +18,7 @@
*/
package
de.thm.arsnova.controller
;
import
java.io.Serializable
;
import
java.util.Collections
;
import
java.util.Comparator
;
import
java.util.List
;
...
...
@@ -71,7 +72,9 @@ public class CourseController extends AbstractController {
return
result
;
}
private
static
class
CourseNameComperator
implements
Comparator
<
Course
>
{
private
static
class
CourseNameComperator
implements
Comparator
<
Course
>,
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@Override
public
int
compare
(
Course
course1
,
Course
course2
)
{
return
course1
.
getFullname
().
compareToIgnoreCase
(
course2
.
getFullname
());
...
...
This diff is collapsed.
Click to expand it.
src/main/java/de/thm/arsnova/services/SessionService.java
+
4
−
1
View file @
2a2eeb5f
...
...
@@ -19,6 +19,7 @@
package
de.thm.arsnova.services
;
import
java.io.Serializable
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.Comparator
;
...
...
@@ -155,7 +156,9 @@ public class SessionService implements ISessionService {
return
databaseDao
.
countActiveUsers
(
session
,
since
);
}
public
static
class
SessionNameComperator
implements
Comparator
<
Session
>
{
public
static
class
SessionNameComperator
implements
Comparator
<
Session
>,
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@Override
public
int
compare
(
Session
session1
,
Session
session2
)
{
return
session1
.
getName
().
compareToIgnoreCase
(
session2
.
getName
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment