Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: libadblockplus-android-tests/src/org/adblockplus/libadblockplus/FileSystemUtils.java

Issue 29347192: Issue 4181 - Fix FilterEngineTest tests (Closed)
Left Patch Set: Made FileSystemUtils methods static Created Sept. 9, 2016, 7:07 a.m.
Right Patch Set: marked method as static Created Dec. 2, 2016, 6:14 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | libadblockplus-android-tests/src/org/adblockplus/libadblockplus/tests/BaseJsTest.java » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 sb.append(suffix); 43 sb.append(suffix);
44 } 44 }
45 return sb.toString(); 45 return sb.toString();
46 } 46 }
47 47
48 public static File generateUniqueFile(String prefix, String suffix, File paren t) 48 public static File generateUniqueFile(String prefix, String suffix, File paren t)
49 { 49 {
50 return new File(parent, generateUniqueFileName(prefix, suffix)); 50 return new File(parent, generateUniqueFileName(prefix, suffix));
51 } 51 }
52 52
53 public void delete(String filePath, boolean deleteSelf) 53 public static void delete(String filePath, boolean deleteSelf)
diegocarloslima 2016/11/03 14:06:02 This method is missing the static modifier
anton 2016/12/02 06:15:03 Acknowledged.
Felix Dahlke 2017/05/09 08:06:45 I may have missed something, but it appears `delet
anton 2017/05/10 11:00:14 Done.
54 { 54 {
55 delete(new File(filePath), deleteSelf); 55 delete(new File(filePath), deleteSelf);
56 } 56 }
57 57
58 public static void delete(File file, boolean deleteSelf) 58 public static void delete(File file, boolean deleteSelf)
59 { 59 {
60 if (file.isDirectory()) 60 if (file.isDirectory())
61 { 61 {
62 deleteDirectory(file, deleteSelf); 62 deleteDirectory(file, deleteSelf);
63 } 63 }
(...skipping 17 matching lines...) Expand all
81 directory.delete(); 81 directory.delete();
82 } 82 }
83 } 83 }
84 84
85 public static void deleteFile(File file) 85 public static void deleteFile(File file)
86 { 86 {
87 Log.w(TAG, "Deleting file " + file.getAbsolutePath()); 87 Log.w(TAG, "Deleting file " + file.getAbsolutePath());
88 file.delete(); 88 file.delete();
89 } 89 }
90 } 90 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld