poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From one...@apache.org
Subject svn commit: r1756358 - /poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/HeadersFooters.java
Date Mon, 15 Aug 2016 07:36:22 GMT
Author: onealj
Date: Mon Aug 15 07:36:22 2016
New Revision: 1756358

URL: http://svn.apache.org/viewvc?rev=1756358&view=rev
Log:
extract string constant out of code

Modified:
    poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/HeadersFooters.java

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/HeadersFooters.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/HeadersFooters.java?rev=1756358&r1=1756357&r2=1756358&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/HeadersFooters.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hslf/model/HeadersFooters.java Mon Aug 15
07:36:22 2016
@@ -36,6 +36,8 @@ import org.apache.poi.hslf.usermodel.HSL
  */
 public final class HeadersFooters {
 
+    private static final String _ppt2007tag = "___PPT12";
+
     private final HeadersFootersContainer _container;
     private final HSLFSheet _sheet;
     private final boolean _ppt2007;
@@ -54,7 +56,7 @@ public final class HeadersFooters {
         
         // detect if this ppt was saved in Office2007
         String tag = ppt.getSlideMasters().get(0).getProgrammableTag();
-        _ppt2007 = "___PPT12".equals(tag);
+        _ppt2007 = _ppt2007tag.equals(tag);
 
         SheetContainer sc = _sheet.getSheetContainer();
         HeadersFootersContainer hdd = (HeadersFootersContainer)sc.findFirstOfType(RecordTypes.HeadersFooters.typeID);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message