1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-03 17:59:33 +02:00

formatting

This commit is contained in:
Nikolay Pultsin 2013-10-19 13:37:13 +01:00
parent 93a23c7226
commit a42feda147
9 changed files with 12 additions and 12 deletions

View file

@ -62,7 +62,7 @@ final class FB2Tag {
public static final byte DESCRIPTION = 35;
private static final HashMap<String, Byte> ourTagByName = new HashMap<String, Byte>(256, 0.2f);
private static final HashMap<String,Byte> ourTagByName = new HashMap<String,Byte>(256, 0.2f);
private static final Byte ourUnknownTag;
static {

View file

@ -31,7 +31,7 @@ import org.geometerplus.fbreader.network.authentication.litres.LitResAuthenticat
import org.geometerplus.fbreader.network.urlInfo.*;
public abstract class NetworkAuthenticationManager {
private static final HashMap<String, NetworkAuthenticationManager> ourManagers = new HashMap<String, NetworkAuthenticationManager>();
private static final HashMap<String,NetworkAuthenticationManager> ourManagers = new HashMap<String,NetworkAuthenticationManager>();
public static NetworkAuthenticationManager createManager(INetworkLink link, Class<? extends NetworkAuthenticationManager> managerClass) {
NetworkAuthenticationManager mgr = ourManagers.get(link.getSiteName());

View file

@ -27,8 +27,8 @@ class LitResGenreMap {
private static LitResGenreMap ourInstance;
LinkedList<LitResGenre> myGenresTree;
HashMap<String, LitResGenre> myGenresMap;
HashMap<LitResGenre, String> myGenresTitles;
HashMap<String,LitResGenre> myGenresMap;
HashMap<LitResGenre,String> myGenresTitles;
public static LitResGenreMap Instance() {
if (ourInstance == null) {

View file

@ -38,7 +38,7 @@ class OPDSLinkXMLReader extends OPDSXMLReader implements OPDSConstants {
private String myAuthenticationType;
private final LinkedList<URLRewritingRule> myUrlRewritingRules = new LinkedList<URLRewritingRule>();
private final HashMap<RelationAlias, String> myRelationAliases = new HashMap<RelationAlias, String>();
private final HashMap<RelationAlias,String> myRelationAliases = new HashMap<RelationAlias,String>();
private final LinkedHashMap<String,String> myExtraData = new LinkedHashMap<String,String>();
List<INetworkLink> links() {

View file

@ -46,9 +46,9 @@ public abstract class OPDSNetworkLink extends AbstractNetworkLink {
super(id, siteName, title, summary, language, infos);
}
final void setRelationAliases(Map<RelationAlias, String> relationAliases) {
final void setRelationAliases(Map<RelationAlias,String> relationAliases) {
if (relationAliases != null && relationAliases.size() > 0) {
myRelationAliases = new TreeMap<RelationAlias, String>(relationAliases);
myRelationAliases = new TreeMap<RelationAlias,String>(relationAliases);
} else {
myRelationAliases = null;
}

View file

@ -25,7 +25,7 @@ import org.geometerplus.zlibrary.core.xml.*;
import org.geometerplus.fbreader.network.atom.*;
public class OPDSXMLReader extends ATOMXMLReader<OPDSFeedMetadata, OPDSEntry> {
public class OPDSXMLReader extends ATOMXMLReader<OPDSFeedMetadata,OPDSEntry> {
public static final String KEY_PRICE = "price";
private DCDate myDCIssued;

View file

@ -23,7 +23,7 @@ import org.geometerplus.zlibrary.core.xml.ZLStringMap;
import org.geometerplus.fbreader.network.atom.ATOMFeedHandler;
public abstract class AbstractRSSChannelHandler implements ATOMFeedHandler<RSSChannelMetadata, RSSItem> {
public abstract class AbstractRSSChannelHandler implements ATOMFeedHandler<RSSChannelMetadata,RSSItem> {
public RSSChannelMetadata createFeed(ZLStringMap attributes) {
return new RSSChannelMetadata(attributes);
}

View file

@ -30,7 +30,7 @@ public class NetworkAuthorTree extends NetworkTree {
public final NetworkBookItem.AuthorData Author;
private int myBooksNumber;
private HashMap<String, Integer> mySeriesMap;
private HashMap<String,Integer> mySeriesMap;
NetworkAuthorTree(NetworkTree parent, NetworkBookItem.AuthorData author) {
super(parent);
@ -60,7 +60,7 @@ public class NetworkAuthorTree extends NetworkTree {
private void setSeriesIndex(String seriesName, int index) {
if (mySeriesMap == null) {
mySeriesMap = new HashMap<String, Integer>();
mySeriesMap = new HashMap<String,Integer>();
}
mySeriesMap.put(seriesName, Integer.valueOf(index));
}

View file

@ -224,7 +224,7 @@ final class ZLXMLParser {
final ZLMutableString attributeValue = myAttributeValue;
final boolean dontCacheAttributeValues = xmlReader.dontCacheAttributeValues();
final ZLMutableString entityName = myEntityName;
final Map<ZLMutableString,String> strings = new HashMap<ZLMutableString, String>();
final Map<ZLMutableString,String> strings = new HashMap<ZLMutableString,String>();
final ZLStringMap attributes = new ZLStringMap();
String[] tagStack = new String[10];
int tagStackSize = 0;