/** * Returns a set of paths in the workspace that was * affected by this change. * <p> * Noted: since this is a new interface, some of the SCMs may not have * implemented this interface. The default implementation for this * interface is throw UnsupportedOperationException * <p> * It doesn't throw NoSuchMethodException because I rather to throw a * runtime exception * * @return AffectedFile never null. * @since 1.309 */ public Collection<? extends AffectedFile> getAffectedFiles() { String scm = "this SCM"; ChangeLogSet parent = getParent(); if ( null != parent ) { String kind = parent.getKind(); if ( null != kind && kind.trim().length() > 0 ) scm = kind; } throw new UnsupportedOperationException("getAffectedFiles() is not implemented by " + scm); }
/** * Returns a set of paths in the workspace that was * affected by this change. * <p> * Noted: since this is a new interface, some of the SCMs may not have * implemented this interface. The default implementation for this * interface is throw UnsupportedOperationException * <p> * It doesn't throw NoSuchMethodException because I rather to throw a * runtime exception * * @return AffectedFile never null. * @since 1.309 */ public Collection<? extends AffectedFile> getAffectedFiles() { String scm = "this SCM"; ChangeLogSet parent = getParent(); if ( null != parent ) { String kind = parent.getKind(); if ( null != kind && kind.trim().length() > 0 ) scm = kind; } throw new UnsupportedOperationException("getAffectedFiles() is not implemented by " + scm); }
/** * Returns scm name. * Help method used for throwing exception while executing unimplemented method. * * @return name. */ private String getScmKind() { String scm = "this SCM"; ChangeLogSet parent = getParent(); if (null != parent) { String kind = parent.getKind(); if (null != kind && kind.trim().length() > 0) { scm = kind; } } return scm; } }
for (Object o : changes) { ChangeLogSet.Entry entry = (ChangeLogSet.Entry) o; String commitID = (entry.getParent().getKind().equalsIgnoreCase("svn")) ? entry.getCommitId() : entry.getCommitId().substring(0, 6);
/** * Returns scm name. * Help method used for throwing exception while executing unimplemented method. * * @return name. */ private String getScmKind() { String scm = "this SCM"; ChangeLogSet parent = getParent(); if (null != parent) { String kind = parent.getKind(); if (null != kind && kind.trim().length() > 0) { scm = kind; } } return scm; } }
/** * Returns scm name. Help method used for throwing exception while * executing unimplemented method. * * @return name. */ private String getScmKind() { String scm = "this SCM"; ChangeLogSet parent = getParent(); if (null != parent) { String kind = parent.getKind(); if (null != kind && kind.trim().length() > 0) { scm = kind; } } return scm; } }
/** * Returns scm name. * Help method used for throwing exception while executing unimplemented method. * * @return name. */ private String getScmKind() { String scm = "this SCM"; ChangeLogSet parent = getParent(); if (null != parent) { String kind = parent.getKind(); if (null != kind && kind.trim().length() > 0) { scm = kind; } } return scm; } }
@Override public ChangeLogSet getParent() { return (ChangeLogSet)super.getParent(); }
/** * Gets the {@link SubversionChangeLogSet} to which this change set belongs. */ public SubversionChangeLogSet getParent() { return (SubversionChangeLogSet) super.getParent(); }
/** * Gets the {@link SubversionChangeLogSet} to which this change set belongs. */ public SubversionChangeLogSet getParent() { return (SubversionChangeLogSet) super.getParent(); }
/** * Gets the {@link SubversionChangeLogSet} to which this change set belongs. */ public SubversionChangeLogSet getParent() { return (SubversionChangeLogSet)super.getParent(); }