The following document contains the results of PMD's CPD 3.9.
File | Line |
---|---|
thirdparty/net/iharder/base64/Base64.java | 197 |
thirdparty/net/iharder/base64/Base64.java | 258 |
private final static byte[] _URL_SAFE_ALPHABET = { (byte) 'A', (byte) 'B', (byte) 'C', (byte) 'D', (byte) 'E', (byte) 'F', (byte) 'G', (byte) 'H', (byte) 'I', (byte) 'J', (byte) 'K', (byte) 'L', (byte) 'M', (byte) 'N', (byte) 'O', (byte) 'P', (byte) 'Q', (byte) 'R', (byte) 'S', (byte) 'T', (byte) 'U', (byte) 'V', (byte) 'W', (byte) 'X', (byte) 'Y', (byte) 'Z', (byte) 'a', (byte) 'b', (byte) 'c', (byte) 'd', (byte) 'e', (byte) 'f', (byte) 'g', (byte) 'h', (byte) 'i', (byte) 'j', (byte) 'k', (byte) 'l', (byte) 'm', (byte) 'n', (byte) 'o', (byte) 'p', (byte) 'q', (byte) 'r', (byte) 's', (byte) 't', (byte) 'u', (byte) 'v', (byte) 'w', (byte) 'x', (byte) 'y', (byte) 'z', (byte) '0', (byte) '1', (byte) '2', (byte) '3', (byte) '4', (byte) '5', (byte) '6', (byte) '7', (byte) '8', (byte) '9', (byte) '-', (byte) '_' |
File | Line |
---|---|
com/atlassian/theplugin/jira/api/JIRARssClient.java | 72 |
com/atlassian/theplugin/jira/api/JIRARssClient.java | 134 |
url.append("?sorter/field=" + sortBy); url.append("&sorter/order=" + sortOrder); url.append("&pager/start=" + start); url.append("&tempMax=" + max); url.append(appendAuthentication()); try { Document doc = retrieveGetResponse(url.toString()); Element root = doc.getRootElement(); Element channel = root.getChild("channel"); if (channel != null && !channel.getChildren("item").isEmpty()) { return makeIssues(channel.getChildren("item")); } return Collections.EMPTY_LIST; } catch (IOException e) { throw new JIRAException(e.getMessage(), e); } catch (JDOMException e) { throw new JIRAException(e.getMessage(), e); } catch (RemoteApiSessionExpiredException e) { throw new JIRAException(e.getMessage(), e); } } |
File | Line |
---|---|
thirdparty/net/iharder/base64/Base64.java | 275 |
thirdparty/net/iharder/base64/Base64.java | 339 |
private final static byte[] _ORDERED_DECODABET = { -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 0 - 8 -5, -5, // Whitespace: Tab and Linefeed -9, -9, // Decimal 11 - 12 -5, // Whitespace: Carriage Return -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 14 - 26 -9, -9, -9, -9, -9, // Decimal 27 - 31 -5, // Whitespace: Space -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 33 - 42 -9, // Plus sign at decimal 43 -9, // Decimal 44 |
File | Line |
---|---|
thirdparty/net/iharder/base64/Base64.java | 199 |
thirdparty/net/iharder/base64/Base64.java | 325 |
(byte) 'A', (byte) 'B', (byte) 'C', (byte) 'D', (byte) 'E', (byte) 'F', (byte) 'G', (byte) 'H', (byte) 'I', (byte) 'J', (byte) 'K', (byte) 'L', (byte) 'M', (byte) 'N', (byte) 'O', (byte) 'P', (byte) 'Q', (byte) 'R', (byte) 'S', (byte) 'T', (byte) 'U', (byte) 'V', (byte) 'W', (byte) 'X', (byte) 'Y', (byte) 'Z', (byte) '_', |
File | Line |
---|---|
thirdparty/net/iharder/base64/Base64.java | 216 |
thirdparty/net/iharder/base64/Base64.java | 275 |
private final static byte[] _URL_SAFE_DECODABET = { -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 0 - 8 -5, -5, // Whitespace: Tab and Linefeed -9, -9, // Decimal 11 - 12 -5, // Whitespace: Carriage Return -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 14 - 26 -9, -9, -9, -9, -9, // Decimal 27 - 31 -5, // Whitespace: Space -9, -9, -9, -9, -9, -9, -9, -9, -9, -9, // Decimal 33 - 42 |
File | Line |
---|---|
thirdparty/net/iharder/base64/Base64.java | 202 |
thirdparty/net/iharder/base64/Base64.java | 329 |
(byte) '_', (byte) 'a', (byte) 'b', (byte) 'c', (byte) 'd', (byte) 'e', (byte) 'f', (byte) 'g', (byte) 'h', (byte) 'i', (byte) 'j', (byte) 'k', (byte) 'l', (byte) 'm', (byte) 'n', (byte) 'o', (byte) 'p', (byte) 'q', (byte) 'r', (byte) 's', (byte) 't', (byte) 'u', (byte) 'v', (byte) 'w', (byte) 'x', (byte) 'y', (byte) 'z' |
File | Line |
---|---|
thirdparty/net/iharder/base64/Base64.java | 1270 |
thirdparty/net/iharder/base64/Base64.java | 1311 |
Base64.DECODE); out = new java.io.BufferedOutputStream(new java.io.FileOutputStream(outfile)); byte[] buffer = new byte[65536]; // 64K int read = -1; while ((read = in.read(buffer)) >= 0) { out.write(buffer, 0, read); } // end while: through file success = true; } catch (java.io.IOException exc) { exc.printStackTrace(); } finally { try { in.close(); } catch (Exception exc) { } try { out.close(); } catch (Exception exc) { } } // end finally return success; } // end decodeFileToFile /* ******** I N N E R C L A S S I N P U T S T R E A M ******** */ /** * A {@link Base64.InputStream} will read data from another * <tt>java.io.InputStream</tt>, given in the constructor, * and encode/decode to/from Base64 notation on the fly. * * @see Base64 * @since 1.3 */ public static class InputStream extends java.io.FilterInputStream { |
File | Line |
---|---|
com/atlassian/theplugin/jira/api/JIRARssClient.java | 79 |
com/atlassian/theplugin/jira/api/JIRARssClient.java | 102 |
Document doc = retrieveGetResponse(url); Element root = doc.getRootElement(); Element channel = root.getChild("channel"); if (channel != null && !channel.getChildren("item").isEmpty()) { return makeIssues(channel.getChildren("item")); } return Collections.EMPTY_LIST; } catch (IOException e) { throw new JIRAException(e.getMessage(), e); } catch (JDOMException e) { throw new JIRAException(e.getMessage(), e); } catch (RemoteApiSessionExpiredException e) { throw new JIRAException(e.getMessage(), e); } } public List getSavedFilterIssues(JIRAQueryFragment fragment, |
File | Line |
---|---|
com/atlassian/theplugin/jira/api/JIRARssClient.java | 102 |
com/atlassian/theplugin/jira/api/JIRARssClient.java | 142 |
Document doc = retrieveGetResponse(url.toString()); Element root = doc.getRootElement(); Element channel = root.getChild("channel"); if (channel != null && !channel.getChildren("item").isEmpty()) { return makeIssues(channel.getChildren("item")); } return Collections.EMPTY_LIST; } catch (IOException e) { throw new JIRAException(e.getMessage(), e); } catch (JDOMException e) { throw new JIRAException(e.getMessage(), e); } catch (RemoteApiSessionExpiredException e) { throw new JIRAException(e.getMessage(), e); } } |
File | Line |
---|---|
thirdparty/net/iharder/base64/Base64.java | 228 |
thirdparty/net/iharder/base64/Base64.java | 289 |
-9, // Slash at decimal 47 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, // Numbers zero through nine -9, -9, -9, // Decimal 58 - 60 -1, // Equals sign at decimal 61 -9, -9, -9, // Decimal 62 - 64 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, // Letters 'A' through 'N' 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, // Letters 'O' through 'Z' -9, -9, -9, -9, // Decimal 91 - 94 |
File | Line |
---|---|
com/atlassian/theplugin/idea/crucible/CrucibleTableToolWindowPanel.java | 129 |
com/atlassian/theplugin/idea/jira/JIRAToolWindowPanel.java | 266 |
contextMenu.add(new JMenuItem(new CreateChangeListAction(issue, project))); return contextMenu; } private JMenuItem makeWebUrlMenu(String menuName, final String url) { JMenuItem viewInBrowser = new JMenuItem(); viewInBrowser.setText(menuName); viewInBrowser.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { BrowserUtil.launchBrowser(url); } }); return viewInBrowser; } private JScrollPane setupPane(JEditorPane pane, String initialText) { pane.setText(initialText); JScrollPane scrollPane = new JScrollPane(pane, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); scrollPane.setWheelScrollingEnabled(true); return scrollPane; } public void refreshIssuesPage() { |
File | Line |
---|---|
com/atlassian/theplugin/idea/bamboo/BambooTableToolWindowPanel.java | 343 |
com/atlassian/theplugin/idea/crucible/CrucibleTableToolWindowPanel.java | 175 |
return (List<BambooBuildAdapter>) listTableModel.getItems(); } public boolean getExecuteBuildEnabled() { BambooBuildAdapter build = (BambooBuildAdapter) table.getSelectedObject(); return build != null && build.getEnabled(); } private boolean getBamboo2ActionsEnabled() { BambooBuildAdapter build = (BambooBuildAdapter) table.getSelectedObject(); if (build != null) { return build.isBamboo2() && build.getEnabled(); } else { return false; } } public boolean getLabelBuildEnabled() { return getBamboo2ActionsEnabled(); } public boolean getCommentBuildEnabled() { return getBamboo2ActionsEnabled(); } public AtlassianTableView getTable() { return table; } |