18
18
import guru .nidi .graphviz .model .Graph ;
19
19
import guru .nidi .graphviz .model .MutableGraph ;
20
20
21
- import javax .annotation .Nullable ;
22
21
import java .io .*;
23
22
import java .util .*;
24
23
import java .util .concurrent .*;
@@ -32,20 +31,17 @@ public final class Graphviz {
32
31
private static final Pattern DPI_PATTERN = Pattern .compile ("\" ?dpi\" ?\\ s*=\\ s*\" ?([0-9.]+)\" ?" ,
33
32
Pattern .CASE_INSENSITIVE );
34
33
35
- @ Nullable
36
34
private static volatile BlockingQueue <GraphvizEngine > engineQueue ;
37
- @ Nullable
38
35
private static GraphvizEngine engine ;
39
36
private final String src ;
40
37
private final Options options ;
41
- @ Nullable
42
38
final Rasterizer rasterizer ;
43
39
final int width ;
44
40
final int height ;
45
41
final double scale ;
46
42
final double fontAdjust ;
47
43
48
- private Graphviz (String src , @ Nullable Rasterizer rasterizer ,
44
+ private Graphviz (String src , Rasterizer rasterizer ,
49
45
int width , int height , double scale , double fontAdjust , Options options ) {
50
46
this .src = src ;
51
47
this .rasterizer = rasterizer ;
@@ -152,11 +148,11 @@ public Graphviz engine(Engine engine) {
152
148
return new Graphviz (src , rasterizer , width , height , scale , fontAdjust , options .engine (engine ));
153
149
}
154
150
155
- public Graphviz totalMemory (@ Nullable Integer totalMemory ) {
151
+ public Graphviz totalMemory (Integer totalMemory ) {
156
152
return new Graphviz (src , rasterizer , width , height , scale , fontAdjust , options .totalMemory (totalMemory ));
157
153
}
158
154
159
- public Graphviz yInvert (@ Nullable Boolean yInvert ) {
155
+ public Graphviz yInvert (Boolean yInvert ) {
160
156
return new Graphviz (src , rasterizer , width , height , scale , fontAdjust , options .yInvert (yInvert ));
161
157
}
162
158
@@ -180,7 +176,7 @@ public Graphviz fontAdjust(double fontAdjust) {
180
176
return new Graphviz (src , rasterizer , width , height , scale , fontAdjust , options );
181
177
}
182
178
183
- public Renderer rasterize (@ Nullable Rasterizer rasterizer ) {
179
+ public Renderer rasterize (Rasterizer rasterizer ) {
184
180
if (rasterizer == null ) {
185
181
throw new IllegalArgumentException ("The provided rasterizer implementation was not found. "
186
182
+ "Make sure that the batik-rasterizer or svg-salamander jar is available on the classpath." );
0 commit comments