src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipPath.java
changeset 54608 c604234be658
parent 53363 20a872899315
child 54920 6a6935abebe8
equal deleted inserted replaced
54607:b6db97903b69 54608:c604234be658
   674         throw new UnsupportedOperationException();
   674         throw new UnsupportedOperationException();
   675     }
   675     }
   676 
   676 
   677     @Override
   677     @Override
   678     public Iterator<Path> iterator() {
   678     public Iterator<Path> iterator() {
   679         return new Iterator<Path>() {
   679         return new Iterator<>() {
   680             private int i = 0;
   680             private int i = 0;
   681 
   681 
   682             @Override
   682             @Override
   683             public boolean hasNext() {
   683             public boolean hasNext() {
   684                 return (i < getNameCount());
   684                 return (i < getNameCount());
   744     }
   744     }
   745 
   745 
   746     void setAttribute(String attribute, Object value, LinkOption... options)
   746     void setAttribute(String attribute, Object value, LinkOption... options)
   747         throws IOException
   747         throws IOException
   748     {
   748     {
   749         String type = null;
   749         String type;
   750         String attr = null;
   750         String attr;
   751         int colonPos = attribute.indexOf(':');
   751         int colonPos = attribute.indexOf(':');
   752         if (colonPos == -1) {
   752         if (colonPos == -1) {
   753             type = "basic";
   753             type = "basic";
   754             attr = attribute;
   754             attr = attribute;
   755         } else {
   755         } else {
   770 
   770 
   771     Map<String, Object> readAttributes(String attributes, LinkOption... options)
   771     Map<String, Object> readAttributes(String attributes, LinkOption... options)
   772         throws IOException
   772         throws IOException
   773 
   773 
   774     {
   774     {
   775         String view = null;
   775         String view;
   776         String attrs = null;
   776         String attrs;
   777         int colonPos = attributes.indexOf(':');
   777         int colonPos = attributes.indexOf(':');
   778         if (colonPos == -1) {
   778         if (colonPos == -1) {
   779             view = "basic";
   779             view = "basic";
   780             attrs = attributes;
   780             attrs = attributes;
   781         } else {
   781         } else {