mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-04 10:19:33 +02:00
formatting cleanup + @Override
This commit is contained in:
parent
a5d033bd81
commit
d8abdb0bd3
6 changed files with 10 additions and 9 deletions
|
@ -306,6 +306,7 @@ public final class SQLiteBooksDatabase extends BooksDatabase {
|
|||
}
|
||||
|
||||
private SQLiteStatement myInsertBookInfoStatement;
|
||||
@Override
|
||||
protected long insertBookInfo(ZLFile file, String encoding, String language, String title) {
|
||||
if (myInsertBookInfoStatement == null) {
|
||||
myInsertBookInfoStatement = myDatabase.compileStatement(
|
||||
|
|
|
@ -310,7 +310,7 @@ public class BookReader {
|
|||
}
|
||||
|
||||
public final void addContentsData(char[] data, int offset, int length) {
|
||||
if ((length != 0) && (myCurrentContentsTree != null)) {
|
||||
if (length != 0 && myCurrentContentsTree != null) {
|
||||
myContentsBuffer.append(data, offset, length);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.geometerplus.zlibrary.core.image.ZLImage;
|
|||
import org.geometerplus.fbreader.bookmodel.BookModel;
|
||||
import org.geometerplus.fbreader.bookmodel.BookReadingException;
|
||||
import org.geometerplus.fbreader.library.Book;
|
||||
import org.geometerplus.fbreader.formats.*;
|
||||
import org.geometerplus.fbreader.formats.JavaFormatPlugin;
|
||||
|
||||
public class FB2Plugin extends JavaFormatPlugin {
|
||||
public FB2Plugin() {
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.geometerplus.zlibrary.core.image.ZLImage;
|
|||
import org.geometerplus.fbreader.bookmodel.BookModel;
|
||||
import org.geometerplus.fbreader.bookmodel.BookReadingException;
|
||||
import org.geometerplus.fbreader.library.Book;
|
||||
import org.geometerplus.fbreader.formats.*;
|
||||
import org.geometerplus.fbreader.formats.JavaFormatPlugin;
|
||||
|
||||
public class OEBPlugin extends JavaFormatPlugin {
|
||||
public OEBPlugin() {
|
||||
|
@ -60,7 +60,7 @@ public class OEBPlugin extends JavaFormatPlugin {
|
|||
public void readMetaInfo(Book book) throws BookReadingException {
|
||||
new OEBMetaInfoReader(book).readMetaInfo(getOpfFile(book.File));
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void readModel(BookModel model) throws BookReadingException {
|
||||
model.Book.File.setCached(true);
|
||||
|
@ -73,7 +73,7 @@ public class OEBPlugin extends JavaFormatPlugin {
|
|||
return new OEBCoverReader().readCover(getOpfFile(file));
|
||||
} catch (BookReadingException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -82,7 +82,7 @@ public class OEBPlugin extends JavaFormatPlugin {
|
|||
return new OEBAnnotationReader().readAnnotation(getOpfFile(file));
|
||||
} catch (BookReadingException e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -292,7 +292,7 @@ public final class Library extends AbstractLibrary {
|
|||
}
|
||||
|
||||
// Step 1: set myDoGroupTitlesByFirstLetter value,
|
||||
// add "existing" books into recent and favorites lists
|
||||
// add "existing" books into recent and favorites lists
|
||||
if (savedBooksByFileId.size() > 10) {
|
||||
final HashSet<String> letterSet = new HashSet<String>();
|
||||
for (Book book : savedBooksByFileId.values()) {
|
||||
|
|
|
@ -34,7 +34,7 @@ public final class ZLTextStyleEntry {
|
|||
|
||||
short getMask() {
|
||||
return myMask;
|
||||
};
|
||||
}
|
||||
|
||||
public boolean isLeftIndentSupported() {
|
||||
return (myMask & SUPPORTS_LEFT_INDENT) == SUPPORTS_LEFT_INDENT;
|
||||
|
@ -42,7 +42,7 @@ public final class ZLTextStyleEntry {
|
|||
|
||||
public short getLeftIndent() {
|
||||
return myLeftIndent;
|
||||
};
|
||||
}
|
||||
|
||||
public void setLeftIndent(short leftIndent) {
|
||||
myMask |= SUPPORTS_LEFT_INDENT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue