Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

Commit

Permalink
#9 [Dependency] Remove dependency to the library joda-time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoghuman committed Feb 19, 2017
1 parent 88aeb43 commit 91164a7
Show file tree
Hide file tree
Showing 10 changed files with 122 additions and 164 deletions.
7 changes: 0 additions & 7 deletions Preferences.properties

This file was deleted.

7 changes: 0 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,6 @@ ABC-List is a JavaFX &amp; Maven application, written in NetBeans IDE.</descript
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>2.9.1</version>
<scope>compile</scope>
<type>jar</type>
</dependency>
</dependencies>

</project>
1 change: 1 addition & 0 deletions release/Release_v0.3.1_2017-02-dd_HH-mm.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ topic through `key terms`.


#### Refactoring
#9 [Dependency] Remove dependency to the library joda-time.



Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
import com.github.naoghuman.abclist.model.Topic;
import com.github.naoghuman.abclist.sql.SqlProvider;
import com.github.naoghuman.abclist.testdata.TestdataPresenter;
import com.github.naoghuman.abclist.testdata.converter.IDateConverter;
import com.github.naoghuman.abclist.view.application.converter.IDateConverter;
import com.github.naoghuman.abclist.testdata.TestdataGenerator;
import com.github.naoghuman.abclist.testdata.testdataexercise.TestdataExercisePresenter;
import com.github.naoghuman.abclist.view.application.converter.DateConverter;
import com.github.naoghuman.abclist.view.exercise.ETime;
import com.github.naoghuman.lib.database.api.DatabaseFacade;
import com.github.naoghuman.lib.database.api.ICrudService;
Expand Down Expand Up @@ -69,11 +70,11 @@ public void bind(TestdataExercisePresenter presenter) {
saveMaxEntities = presenter.getSaveMaxEntities();
timePeriod = presenter.getTimePeriod();

String startTime = com.github.naoghuman.abclist.testdata.converter.DateConverter.getDefault().convertLongToDateTime(now, IDateConverter.PATTERN__DATE);
String startTime = DateConverter.getDefault().convertLongToDateTime(now, IDateConverter.PATTERN__DATE);
int year = Integer.parseInt(startTime.substring(6)) - timePeriod;
startTime = startTime.substring(0, 6) + year;

final long convertedStartTime = com.github.naoghuman.abclist.testdata.converter.DateConverter.getDefault().convertDateTimeToLong(startTime, IDateConverter.PATTERN__DATE);
final long convertedStartTime = DateConverter.getDefault().convertDateTimeToLong(startTime, IDateConverter.PATTERN__DATE);
convertedTimePeriod = now - convertedStartTime;

entityProperty.unbind();
Expand All @@ -98,7 +99,7 @@ public void bind(TestdataExercisePresenter presenter) {
}

private long createGenerationTime() {
final long generationTime = now - com.github.naoghuman.abclist.testdata.converter.DateConverter.getDefault().getLongInPeriodFromNowTo(convertedTimePeriod);
final long generationTime = now - DateConverter.getDefault().getLongInPeriodFromNowTo(convertedTimePeriod);

return generationTime;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
import com.github.naoghuman.abclist.model.ModelProvider;
import com.github.naoghuman.abclist.model.Term;
import com.github.naoghuman.abclist.testdata.TestdataPresenter;
import com.github.naoghuman.abclist.testdata.converter.IDateConverter;
import com.github.naoghuman.abclist.view.application.converter.IDateConverter;
import com.github.naoghuman.abclist.testdata.TestdataGenerator;
import com.github.naoghuman.abclist.testdata.testdataterm.TestdataTermPresenter;
import com.github.naoghuman.abclist.view.application.converter.DateConverter;
import com.github.naoghuman.lib.database.api.DatabaseFacade;
import com.github.naoghuman.lib.database.api.ICrudService;
import com.github.naoghuman.lib.logger.api.LoggerFacade;
Expand Down Expand Up @@ -65,11 +66,11 @@ public void bind(TestdataTermPresenter presenter) {
saveMaxEntities = presenter.getSaveMaxEntities();
timePeriod = presenter.getTimePeriod();

String startTime = com.github.naoghuman.abclist.testdata.converter.DateConverter.getDefault().convertLongToDateTime(now, IDateConverter.PATTERN__DATE);
String startTime = DateConverter.getDefault().convertLongToDateTime(now, IDateConverter.PATTERN__DATE);
int year = Integer.parseInt(startTime.substring(6)) - timePeriod;
startTime = startTime.substring(0, 6) + year;

final long convertedStartTime = com.github.naoghuman.abclist.testdata.converter.DateConverter.getDefault().convertDateTimeToLong(startTime, IDateConverter.PATTERN__DATE);
final long convertedStartTime = DateConverter.getDefault().convertDateTimeToLong(startTime, IDateConverter.PATTERN__DATE);
convertedTimePeriod = now - convertedStartTime;

entityProperty.unbind();
Expand All @@ -94,7 +95,7 @@ public void bind(TestdataTermPresenter presenter) {
}

private long createGenerationTime() {
final long generationTime = now - com.github.naoghuman.abclist.testdata.converter.DateConverter.getDefault().getLongInPeriodFromNowTo(convertedTimePeriod);
final long generationTime = now - DateConverter.getDefault().getLongInPeriodFromNowTo(convertedTimePeriod);

return generationTime;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
import com.github.naoghuman.abclist.model.ModelProvider;
import com.github.naoghuman.abclist.model.Topic;
import com.github.naoghuman.abclist.testdata.TestdataPresenter;
import com.github.naoghuman.abclist.testdata.converter.IDateConverter;
import com.github.naoghuman.abclist.view.application.converter.IDateConverter;
import com.github.naoghuman.abclist.testdata.testdatatopic.TestdataTopicPresenter;
import com.github.naoghuman.abclist.testdata.TestdataGenerator;
import com.github.naoghuman.abclist.view.application.converter.DateConverter;
import com.github.naoghuman.lib.database.api.DatabaseFacade;
import com.github.naoghuman.lib.database.api.ICrudService;
import com.github.naoghuman.lib.logger.api.LoggerFacade;
Expand Down Expand Up @@ -65,11 +66,11 @@ public void bind(TestdataTopicPresenter presenter) {
saveMaxEntities = presenter.getSaveMaxEntities();
timePeriod = presenter.getTimePeriod();

String startTime = com.github.naoghuman.abclist.testdata.converter.DateConverter.getDefault().convertLongToDateTime(now, IDateConverter.PATTERN__DATE);
String startTime = DateConverter.getDefault().convertLongToDateTime(now, IDateConverter.PATTERN__DATE);
int year = Integer.parseInt(startTime.substring(6)) - timePeriod;
startTime = startTime.substring(0, 6) + year;

final long convertedStartTime = com.github.naoghuman.abclist.testdata.converter.DateConverter.getDefault().convertDateTimeToLong(startTime, IDateConverter.PATTERN__DATE);
final long convertedStartTime = DateConverter.getDefault().convertDateTimeToLong(startTime, IDateConverter.PATTERN__DATE);
convertedTimePeriod = now - convertedStartTime;

entityProperty.unbind();
Expand All @@ -94,7 +95,7 @@ public void bind(TestdataTopicPresenter presenter) {
}

private long createGenerationTime() {
final long generationTime = now - com.github.naoghuman.abclist.testdata.converter.DateConverter.getDefault().getLongInPeriodFromNowTo(convertedTimePeriod);
final long generationTime = now - DateConverter.getDefault().getLongInPeriodFromNowTo(convertedTimePeriod);

return generationTime;
}
Expand Down
Loading

0 comments on commit 91164a7

Please sign in to comment.