From 1e51b171a47fb36d66143e2845d91e6256d7631e Mon Sep 17 00:00:00 2001 From: kruland2607 Date: Wed, 12 Dec 2012 16:45:59 -0600 Subject: [PATCH] Change FIXMEs relating to caching decal bytes to a TODO. The class functions correctly as is, but might benifit from caching. --- core/src/net/sf/openrocket/document/DecalRegistry.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/net/sf/openrocket/document/DecalRegistry.java b/core/src/net/sf/openrocket/document/DecalRegistry.java index 110c2a6b7..f3d2f8dbe 100644 --- a/core/src/net/sf/openrocket/document/DecalRegistry.java +++ b/core/src/net/sf/openrocket/document/DecalRegistry.java @@ -25,7 +25,7 @@ public class DecalRegistry { private Map exportedDecalMap = new HashMap(); - /* FIXME - Caching ? + /* TODO - should we implement caching? private Map cache = new HashMap(); */ @@ -71,7 +71,8 @@ public class DecalRegistry { * @throws IOException */ public InputStream getDecal( String name ) throws FileNotFoundException, IOException { - /* FIXME - Caching? + /* TODO + // if the decal has already been cached return it. byte[] bytes = cache.get(name); if ( bytes != null ) { return new ByteArrayInputStream(bytes); @@ -122,7 +123,7 @@ public class DecalRegistry { try { byte[] bytes = FileUtils.readBytes(rawIs); - // FIXME - update cache; + // TODO - here we would update the cache. return new ByteArrayInputStream(bytes); } finally {