diff options
author | PJ Fanning <fanningpj@apache.org> | 2020-01-12 11:04:21 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2020-01-12 11:04:21 +0000 |
commit | b211a1362c9d0a067bff9de057e2ae12b3f8d774 (patch) | |
tree | 9d542bda9b86dbc9d1d7dbaf0aa2408cc4ef5ee8 /src/testcases/org/apache/poi/sl/draw/geom/TestPresetGeometries.java | |
parent | aa11adebf1c27e54bed0b3d2683c6e6f3c9f6883 (diff) | |
download | poi-b211a1362c9d0a067bff9de057e2ae12b3f8d774.tar.gz poi-b211a1362c9d0a067bff9de057e2ae12b3f8d774.zip |
use a few more lambdas
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1872644 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/sl/draw/geom/TestPresetGeometries.java')
-rw-r--r-- | src/testcases/org/apache/poi/sl/draw/geom/TestPresetGeometries.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/testcases/org/apache/poi/sl/draw/geom/TestPresetGeometries.java b/src/testcases/org/apache/poi/sl/draw/geom/TestPresetGeometries.java index fe7b087c2c..8b583e44df 100644 --- a/src/testcases/org/apache/poi/sl/draw/geom/TestPresetGeometries.java +++ b/src/testcases/org/apache/poi/sl/draw/geom/TestPresetGeometries.java @@ -40,12 +40,7 @@ public class TestPresetGeometries { for(String name : shapes.keySet()) { CustomGeometry geom = shapes.get(name); - Context ctx = new Context(geom, new Rectangle2D.Double(0, 0, 100, 100), new IAdjustableShape() { - @Override - public Guide getAdjustValue(String presetName) { - return null; - } - }); + Context ctx = new Context(geom, new Rectangle2D.Double(0, 0, 100, 100), presetName -> null); for(Path p : geom){ Path2D path = p.getPath(ctx); assertNotNull(path); |