Skip to content

Commit

Permalink
Fix serializable warnings. Fix pom for eclipse.
Browse files Browse the repository at this point in the history
  • Loading branch information
biddster committed Apr 7, 2014
1 parent c481b81 commit 8abbef9
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
33 changes: 33 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,39 @@
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>org.jacoco</groupId>
<artifactId>
jacoco-maven-plugin
</artifactId>
<versionRange>
[0.6.1.201212231917,)
</versionRange>
<goals>
<goal>prepare-agent</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
*/
class DiceWareComboBoxModel extends DefaultComboBoxModel<Dictionary> {

public DiceWareComboBoxModel(final Vector<Dictionary> dictionaries) {
private static final long serialVersionUID = 4631471927361644405L;

public DiceWareComboBoxModel(final Vector<Dictionary> dictionaries) {
super(dictionaries);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
*/
class DictionaryComboBoxRenderer extends DefaultListCellRenderer {

@Override
private static final long serialVersionUID = 1L;

@Override
public Component getListCellRendererComponent(final JList<?> list, final Object value, final int index, final boolean isSelected, final boolean cellHasFocus) {
final Dictionary d = ((Dictionary) value);
final String label = d.getName() + " (" + d.getWordCount() + " words)";
Expand Down

0 comments on commit 8abbef9

Please sign in to comment.