Skip to content

Commit

Permalink
Merge pull request #34 from eximius313/1.8.x
Browse files Browse the repository at this point in the history
Use constructor injection instead of field injection
  • Loading branch information
marcosinigaglia authored Feb 20, 2019
2 parents e73b16d + d9869f7 commit 4045ff2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions module/app/it/innove/play/pdf/PdfGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ public class PdfGenerator {

private List<String> defaultFonts = null;

@Inject
Environment environment;

public PdfGenerator() {
final Environment environment;

@Inject
public PdfGenerator(final Environment environment) {
this.environment = environment;
}

public void loadTemporaryFonts(List<String> fontsToLoad) {
Expand Down
2 changes: 1 addition & 1 deletion module/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name := "play2-pdf"

organization := "it.innove"

version := "1.8.0"
version := "1.8.1"

lazy val root = (project in file(".")).enablePlugins(PlayJava)

Expand Down

0 comments on commit 4045ff2

Please sign in to comment.