Skip to content
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.

Commit

Permalink
Added serialVersionUID to serializable classes
Browse files Browse the repository at this point in the history
Added license info (2 classes)
Organized imports (1 class)
Removed an empty folder
  • Loading branch information
Joel Håkansson committed Aug 26, 2011
1 parent 587587a commit 8698882
Show file tree
Hide file tree
Showing 33 changed files with 184 additions and 18 deletions.
6 changes: 5 additions & 1 deletion braille/catalog/be_interpoint/Interpoint55Embosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@
*/
public class Interpoint55Embosser extends AbstractEmbosser {

private final static PrintDirection PRINT_DIRECTION = PrintDirection.SIDEWAYS;
/**
*
*/
private static final long serialVersionUID = 6878058097412223168L;
private final static PrintDirection PRINT_DIRECTION = PrintDirection.SIDEWAYS;
private final static TableFilter tableFilter;
private final static String table_US1 = "org_daisy.EmbosserTableProvider.TableType.MIT";
private final static String table_US2 = "org_daisy.EmbosserTableProvider.TableType.NABCC";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@
*/
public class EnablingTechnologiesDoubleSidedEmbosser extends EnablingTechnologiesEmbosser {

public EnablingTechnologiesDoubleSidedEmbosser(String name, String desc, EmbosserType identifier) {
/**
*
*/
private static final long serialVersionUID = 160751373667707902L;

public EnablingTechnologiesDoubleSidedEmbosser(String name, String desc, EmbosserType identifier) {

super(name, desc, identifier);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@
*/
public abstract class EnablingTechnologiesEmbosser extends AbstractEmbosser {

protected EmbosserType type;
/**
*
*/
private static final long serialVersionUID = 2167979908869652946L;

protected EmbosserType type;

private double maxPageWidth = Double.MAX_VALUE;
private double maxPageHeight = Double.MAX_VALUE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@
*/
public class EnablingTechnologiesSingleSidedEmbosser extends EnablingTechnologiesEmbosser {

public EnablingTechnologiesSingleSidedEmbosser(String name, String desc, EmbosserType identifier) {
/**
*
*/
private static final long serialVersionUID = -3602582375923051565L;

public EnablingTechnologiesSingleSidedEmbosser(String name, String desc, EmbosserType identifier) {

super(name, desc, identifier);

Expand Down
4 changes: 4 additions & 0 deletions braille/catalog/com_braillo/AbstractBraillo200Embosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
* @author Joel Håkansson
*/
public abstract class AbstractBraillo200Embosser extends BrailloEmbosser {
/**
*
*/
private static final long serialVersionUID = 2846669580514452253L;
private boolean zFoldingEnabled;

//jvm1.6@Override
Expand Down
4 changes: 4 additions & 0 deletions braille/catalog/com_braillo/AbstractBraillo440Embosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
import com_braillo.BrailloEmbosserProvider.EmbosserType;

public abstract class AbstractBraillo440Embosser extends BrailloEmbosser {
/**
*
*/
private static final long serialVersionUID = 3735464395595074473L;
private final static double cellWidth = 19*EmbosserTools.INCH_IN_MM/80d; //6;
private final static double cellHeight = 10;
private final static double constant = 11*EmbosserTools.INCH_IN_MM/80d;
Expand Down
5 changes: 5 additions & 0 deletions braille/catalog/com_braillo/Braillo200Embosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@

public class Braillo200Embosser extends AbstractBraillo200Embosser {

/**
*
*/
private static final long serialVersionUID = 1530272273274502284L;

public Braillo200Embosser(String name, String desc) {
super(name, desc, EmbosserType.BRAILLO_200);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
* @author Joel Håkansson
*/
public class Braillo200_270_400_v12_16Embosser extends BrailloEmbosser {
/**
*
*/
private static final long serialVersionUID = -793439533297371375L;

private final static byte[] halfInchToSheetLength = new byte[]{ '0', '1', '1', '2', '2', '3', '3', '4', '4', '5',
'5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
*/
public class Braillo200_270_400_v1_11Embosser extends BrailloEmbosser {

/**
*
*/
private static final long serialVersionUID = -254360539553477980L;

//jvm1.6@Override
public boolean supportsPrintPage(PrintPage dim) {
int height = (int)Math.ceil(dim.getHeight()/EmbosserTools.INCH_IN_MM);
Expand Down
5 changes: 5 additions & 0 deletions braille/catalog/com_braillo/Braillo400SEmbosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@

public class Braillo400SEmbosser extends AbstractBraillo200Embosser {

/**
*
*/
private static final long serialVersionUID = 458179752397011984L;

public Braillo400SEmbosser(String name, String desc) {
super(name, desc, EmbosserType.BRAILLO_400_S);
}
Expand Down
5 changes: 5 additions & 0 deletions braille/catalog/com_braillo/Braillo400SREmbosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@

public class Braillo400SREmbosser extends AbstractBraillo200Embosser {

/**
*
*/
private static final long serialVersionUID = 4824785073677884484L;

public Braillo400SREmbosser(String name, String desc) {
super(name, desc, EmbosserType.BRAILLO_400_SR);
}
Expand Down
5 changes: 5 additions & 0 deletions braille/catalog/com_braillo/Braillo440SFEmbosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@

public class Braillo440SFEmbosser extends AbstractBraillo440Embosser {

/**
*
*/
private static final long serialVersionUID = 3642071434258027472L;

public Braillo440SFEmbosser(String name, String desc) {
super(name, desc, EmbosserType.BRAILLO_440_SWSF);
saddleStitchEnabled = true;
Expand Down
5 changes: 5 additions & 0 deletions braille/catalog/com_braillo/Braillo440SWEmbosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@

public class Braillo440SWEmbosser extends AbstractBraillo440Embosser {

/**
*
*/
private static final long serialVersionUID = -7525199384507098502L;

public Braillo440SWEmbosser(String name, String desc) {
super(name, desc, EmbosserType.BRAILLO_440_SW);
}
Expand Down
4 changes: 4 additions & 0 deletions braille/catalog/com_braillo/BrailloEmbosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
import org.daisy.braille.table.TableFilter;

public abstract class BrailloEmbosser extends AbstractEmbosser {
/**
*
*/
private static final long serialVersionUID = 7640218914742790228L;
private final static TableFilter tableFilter;
static {
tableFilter = new TableFilter() {
Expand Down
6 changes: 5 additions & 1 deletion braille/catalog/com_indexbraille/BlueBarEmbosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@

public class BlueBarEmbosser extends IndexEmbosser {

private final static TableFilter tableFilter;
/**
*
*/
private static final long serialVersionUID = -2619451994009139923L;
private final static TableFilter tableFilter;
private final static String table6dot = IndexTableProvider.class.getCanonicalName() + ".TableType.INDEX_TRANSPARENT_6DOT";

static {
Expand Down
7 changes: 6 additions & 1 deletion braille/catalog/com_indexbraille/IndexEmbosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@

public abstract class IndexEmbosser extends AbstractEmbosser {

protected EmbosserType type;
/**
*
*/
private static final long serialVersionUID = 4942671719606902452L;

protected EmbosserType type;

private double minPageLengthAlongFeed = 50d;
private double maxPageLengthAlongFeed = Double.MAX_VALUE;
Expand Down
6 changes: 5 additions & 1 deletion braille/catalog/com_indexbraille/IndexV2Embosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@

public class IndexV2Embosser extends IndexEmbosser {

private final static TableFilter tableFilter;
/**
*
*/
private static final long serialVersionUID = -3826909986984899820L;
private final static TableFilter tableFilter;
private final static String table6dot = "org.daisy.braille.table.DefaultTableProvider.TableType.EN_US";
//private final static String table8dot = "com_indexbraille.IndexTableProvider.TableType.INDEX_TRANSPARENT_8DOT";

Expand Down
6 changes: 5 additions & 1 deletion braille/catalog/com_indexbraille/IndexV3Embosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@

public class IndexV3Embosser extends IndexEmbosser {

private final static TableFilter tableFilter;
/**
*
*/
private static final long serialVersionUID = 192884103325881800L;
private final static TableFilter tableFilter;
private final static String table6dot = "org.daisy.braille.table.DefaultTableProvider.TableType.EN_US";
//private final static String table8dot = "com_indexbraille.IndexTableProvider.TableType.INDEX_TRANSPARENT_8DOT";

Expand Down
6 changes: 5 additions & 1 deletion braille/catalog/com_indexbraille/IndexV4Embosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@

public class IndexV4Embosser extends IndexEmbosser {

private final static TableFilter tableFilter;
/**
*
*/
private static final long serialVersionUID = -3888325825465502071L;
private final static TableFilter tableFilter;
private final static String table6dot = "org.daisy.braille.table.DefaultTableProvider.TableType.EN_US";
//private final static String table8dot = "com_indexbraille.IndexTableProvider.TableType.INDEX_TRANSPARENT_8DOT";

Expand Down
7 changes: 6 additions & 1 deletion braille/catalog/com_viewplus/TigerEmbosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@

public class TigerEmbosser extends AbstractEmbosser {

protected EmbosserType type;
/**
*
*/
private static final long serialVersionUID = 5130422423415613716L;

protected EmbosserType type;

private double maxPageWidth = Double.MAX_VALUE;
private double maxPageHeight = Double.MAX_VALUE;
Expand Down
7 changes: 6 additions & 1 deletion braille/catalog/es_once_cidat/CidatEmbosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@
*/
public abstract class CidatEmbosser extends AbstractEmbosser {

protected EmbosserType type;
/**
*
*/
private static final long serialVersionUID = -1441333837477401994L;

protected EmbosserType type;

private double maxPageWidth = Double.MAX_VALUE;
private double maxPageHeight = Double.MAX_VALUE;
Expand Down
6 changes: 5 additions & 1 deletion braille/catalog/es_once_cidat/ImpactoEmbosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@
*/
public class ImpactoEmbosser extends CidatEmbosser {

private final static TableFilter tableFilter;
/**
*
*/
private static final long serialVersionUID = -3928307285808352010L;
private final static TableFilter tableFilter;
private final static String transparentTable = CidatTableProvider.class.getCanonicalName() + ".TableType.IMPACTO_TRANSPARENT_6DOT";
//private final static String transparent8dotTable = CidatTableProvider.class.getCanonicalName() + ".TableType.IMPACTO_TRANSPARENT_8DOT";

Expand Down
6 changes: 5 additions & 1 deletion braille/catalog/es_once_cidat/PortathielBlueEmbosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@
*/
public class PortathielBlueEmbosser extends CidatEmbosser {

private final static TableFilter tableFilter;
/**
*
*/
private static final long serialVersionUID = -2862233116704332024L;
private final static TableFilter tableFilter;
private final static String transparentTable = "es_once_cidat.CidatTableProvider.TableType.PORTATHIEL_TRANSPARENT_6DOT";
//private final static String transparent8dotTable = CidatTableProvider.class.getCanonicalName() + ".TableType.PORTATHIEL_TRANSPARENT_8DOT";
private final static String mitTable = "org_daisy.EmbosserTableProvider.TableType.MIT";
Expand Down
6 changes: 5 additions & 1 deletion braille/catalog/org_daisy/BrailleEditorsFileFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@
*/
public class BrailleEditorsFileFormat extends AbstractFactory implements FileFormat {

private FileType type;
/**
*
*/
private static final long serialVersionUID = 4217010913717769350L;
private FileType type;
private Table table;
private TableCatalog tableCatalog;
private TableFilter tableFilter;
Expand Down
17 changes: 17 additions & 0 deletions braille/catalog/org_daisy/CustomPaperProvider.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* Braille Utils (C) 2010-2011 Daisy Consortium
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org_daisy;

import java.util.Collection;
Expand Down
4 changes: 4 additions & 0 deletions braille/catalog/org_daisy/GenericEmbosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
import org.daisy.printing.Device;

public class GenericEmbosser extends AbstractEmbosser {
/**
*
*/
private static final long serialVersionUID = -5756220386304696977L;
private final static TableFilter tableFilter;

static {
Expand Down
6 changes: 5 additions & 1 deletion braille/catalog/pl_com_harpo/MountbattenEmbosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@

public class MountbattenEmbosser extends AbstractEmbosser {

private double maxPageWidth = 330d;
/**
*
*/
private static final long serialVersionUID = 8609686103308218762L;
private double maxPageWidth = 330d;
private double maxPageHeight = 382d;
private double minPageWidth = 100d;
private double minPageHeight = 98d;
Expand Down
4 changes: 4 additions & 0 deletions braille/src/org/daisy/braille/embosser/AbstractEmbosser.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
* @author Joel Håkansson
*/
public abstract class AbstractEmbosser extends AbstractFactory implements Embosser {
/**
*
*/
private static final long serialVersionUID = 374888389077716688L;
private final HashMap<String, Object> props;
private final HashMap<String, String> settings;
private double cellHeight = 10;
Expand Down
4 changes: 4 additions & 0 deletions braille/src/org/daisy/braille/pef/PEFValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
* @author Joel Håkansson
*/
public class PEFValidator extends AbstractFactory implements org.daisy.validator.Validator {
/**
*
*/
private static final long serialVersionUID = 5109400956885804582L;
/**
* Key for getFeature/setFeature,
* corresponding value should be a {@link Mode} value
Expand Down
5 changes: 5 additions & 0 deletions braille/src/org/daisy/braille/table/AbstractTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
*/
public abstract class AbstractTable extends AbstractFactory implements Table {

/**
*
*/
private static final long serialVersionUID = -3604305793559653957L;

/**
* Creates a new AbstractTable with the supplied settings.
* @param name the name of the Table
Expand Down
4 changes: 4 additions & 0 deletions braille/src/org/daisy/braille/table/EmbosserTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
* @param <T>
*/
public class EmbosserTable<T> extends AbstractTable {
/**
*
*/
private static final long serialVersionUID = -3902130832797155793L;
private final HashMap<String, Object> props;
private final T type;
private final ConfigurableTableProvider<T> provider;
Expand Down
Loading

0 comments on commit 8698882

Please sign in to comment.