1917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul/* 2917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * Copyright (C) 2008 The Android Open Source Project 3917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * 4917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * Licensed under the Apache License, Version 2.0 (the "License"); 5917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * you may not use this file except in compliance with the License. 6917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * You may obtain a copy of the License at 7917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * 8917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * http://www.apache.org/licenses/LICENSE-2.0 9917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * 10917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * Unless required by applicable law or agreed to in writing, software 11917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * distributed under the License is distributed on an "AS IS" BASIS, 12917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * See the License for the specific language governing permissions and 14917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * limitations under the License. 15917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul */ 16917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 17917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgulpackage com.android.dexgen.dex.code; 18917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 19917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgulimport com.android.dexgen.rop.cst.CstType; 20917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgulimport com.android.dexgen.util.FixedSizeList; 21917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgulimport com.android.dexgen.util.Hex; 22917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 23917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul/** 24917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * Ordered list of (exception type, handler address) entries. 25917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul */ 26917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgulpublic final class CatchHandlerList extends FixedSizeList 27917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul implements Comparable<CatchHandlerList> { 28917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** {@code non-null;} empty instance */ 29917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul public static final CatchHandlerList EMPTY = new CatchHandlerList(0); 30917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 31917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** 32917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * Constructs an instance. All indices initially contain {@code null}. 33917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * 34917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * @param size {@code >= 0;} the size of the list 35917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul */ 36917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul public CatchHandlerList(int size) { 37917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul super(size); 38917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 39917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 40917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** 41917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * Gets the element at the given index. It is an error to call 42917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * this with the index for an element which was never set; if you 43917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * do that, this will throw {@code NullPointerException}. 44917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * 45917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * @param n {@code >= 0, < size();} which index 46917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * @return {@code non-null;} element at that index 47917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul */ 48917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul public Entry get(int n) { 49917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return (Entry) get0(n); 50917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 51917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 52917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** {@inheritDoc} */ 53917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul public String toHuman() { 54917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return toHuman("", ""); 55917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 56917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 57917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** 58917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * Get the human form of this instance, prefixed on each line 59917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * with the string. 60917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * 61917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * @param prefix {@code non-null;} the prefix for every line 62917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * @param header {@code non-null;} the header for the first line (after the 63917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * first prefix) 64917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * @return {@code non-null;} the human form 65917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul */ 66917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul public String toHuman(String prefix, String header) { 67917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul StringBuilder sb = new StringBuilder(100); 68917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul int size = size(); 69917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 70917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul sb.append(prefix); 71917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul sb.append(header); 72917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul sb.append("catch "); 73917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 74917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul for (int i = 0; i < size; i++) { 75917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul Entry entry = get(i); 76917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 77917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul if (i != 0) { 78917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul sb.append(",\n"); 79917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul sb.append(prefix); 80917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul sb.append(" "); 81917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 82917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 83917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul if ((i == (size - 1)) && catchesAll()) { 84917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul sb.append("<any>"); 85917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } else { 86917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul sb.append(entry.getExceptionType().toHuman()); 87917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 88917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 89917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul sb.append(" -> "); 90917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul sb.append(Hex.u2or4(entry.getHandler())); 91917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 92917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 93917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return sb.toString(); 94917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 95917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 96917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** 97917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * Returns whether or not this instance ends with a "catch-all" 98917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * handler. 99917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * 100917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * @return {@code true} if this instance ends with a "catch-all" 101917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * handler or {@code false} if not 102917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul */ 103917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul public boolean catchesAll() { 104917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul int size = size(); 105917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 106917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul if (size == 0) { 107917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return false; 108917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 109917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 110917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul Entry last = get(size - 1); 111917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return last.getExceptionType().equals(CstType.OBJECT); 112917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 113917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 114917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** 115917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * Sets the entry at the given index. 116917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * 117917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * @param n {@code >= 0, < size();} which index 118917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * @param exceptionType {@code non-null;} type of exception handled 119917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * @param handler {@code >= 0;} exception handler address 120917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul */ 121917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul public void set(int n, CstType exceptionType, int handler) { 122917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul set0(n, new Entry(exceptionType, handler)); 123917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 124917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 125917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** 126917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * Sets the entry at the given index. 127917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * 128917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * @param n {@code >= 0, < size();} which index 129917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * @param entry {@code non-null;} the entry to set at {@code n} 130917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul */ 131917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul public void set(int n, Entry entry) { 132917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul set0(n, entry); 133917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 134917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 135917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** {@inheritDoc} */ 136917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul public int compareTo(CatchHandlerList other) { 137917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul if (this == other) { 138917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul // Easy out. 139917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return 0; 140917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 141917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 142917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul int thisSize = size(); 143917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul int otherSize = other.size(); 144917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul int checkSize = Math.min(thisSize, otherSize); 145917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 146917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul for (int i = 0; i < checkSize; i++) { 147917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul Entry thisEntry = get(i); 148917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul Entry otherEntry = other.get(i); 149917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul int compare = thisEntry.compareTo(otherEntry); 150917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul if (compare != 0) { 151917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return compare; 152917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 153917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 154917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 155917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul if (thisSize < otherSize) { 156917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return -1; 157917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } else if (thisSize > otherSize) { 158917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return 1; 159917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 160917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 161917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return 0; 162917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 163917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 164917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** 165917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * Entry in the list. 166917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul */ 167917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul public static class Entry implements Comparable<Entry> { 168917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** {@code non-null;} type of exception handled */ 169917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul private final CstType exceptionType; 170917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 171917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** {@code >= 0;} exception handler address */ 172917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul private final int handler; 173917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 174917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** 175917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * Constructs an instance. 176917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * 177917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * @param exceptionType {@code non-null;} type of exception handled 178917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * @param handler {@code >= 0;} exception handler address 179917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul */ 180917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul public Entry(CstType exceptionType, int handler) { 181917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul if (handler < 0) { 182917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul throw new IllegalArgumentException("handler < 0"); 183917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 184917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 185917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul if (exceptionType == null) { 186917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul throw new NullPointerException("exceptionType == null"); 187917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 188917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 189917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul this.handler = handler; 190917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul this.exceptionType = exceptionType; 191917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 192917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 193917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** {@inheritDoc} */ 194917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul @Override 195917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul public int hashCode() { 196917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return (handler * 31) + exceptionType.hashCode(); 197917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 198917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 199917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** {@inheritDoc} */ 200917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul @Override 201917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul public boolean equals(Object other) { 202917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul if (other instanceof Entry) { 203917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return (compareTo((Entry) other) == 0); 204917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 205917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 206917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return false; 207917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 208917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 209917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** {@inheritDoc} */ 210917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul public int compareTo(Entry other) { 211917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul if (handler < other.handler) { 212917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return -1; 213917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } else if (handler > other.handler) { 214917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return 1; 215917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 216917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 217917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return exceptionType.compareTo(other.exceptionType); 218917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 219917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 220917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** 221917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * Gets the exception type handled. 222917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * 223917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * @return {@code non-null;} the exception type 224917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul */ 225917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul public CstType getExceptionType() { 226917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return exceptionType; 227917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 228917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul 229917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul /** 230917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * Gets the handler address. 231917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * 232917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul * @return {@code >= 0;} the handler address 233917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul */ 234917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul public int getHandler() { 235917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul return handler; 236917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 237917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul } 238917cb222329ee8c035c3ffaf947e4265761b9367Piotr Gurgul} 239