CPD Results

The following document contains the results of PMD's CPD 6.0.1.

Duplications

File Line
org/cyclopsgroup/jmxterm/cmd/GetCommand.java 110
org/cyclopsgroup/jmxterm/cmd/WatchCommand.java 85
  @Override
  public List<String> doSuggestArgument() throws IOException, JMException {
    if (getSession().getBean() != null) {
      MBeanServerConnection con = getSession().getConnection().getServerConnection();
      MBeanAttributeInfo[] ais =
          con.getMBeanInfo(new ObjectName(getSession().getBean())).getAttributes();
      List<String> results = new ArrayList<String>(ais.length);
      for (MBeanAttributeInfo ai : ais) {
        results.add(ai.getName());
      }