diff options
author | Chris Aniszczyk <caniszczyk@gmail.com> | 2010-08-18 20:56:27 -0500 |
---|---|---|
committer | Chris Aniszczyk <caniszczyk@gmail.com> | 2010-08-18 20:58:25 -0500 |
commit | 6c9d82b4ce0445905db1d88f419bb8d04a5ed4bc (patch) | |
tree | ac709db749cd853106c45cece13b2852f19eb435 /org.eclipse.jgit | |
parent | 07a1d17858cacb28f4aab9315845341de69c2c4f (diff) | |
download | jgit-6c9d82b4ce0445905db1d88f419bb8d04a5ed4bc.tar.gz jgit-6c9d82b4ce0445905db1d88f419bb8d04a5ed4bc.zip |
Remove getter and setter for author in Tag
There was a duplicated getter and setter for tagger in Tag.
There's no needed to have two getters and setters that represent
the same things. The appropriate tests were updated also.
Change-Id: If46dc00c4c0f31ea4234c6d3bda3c03e6ebbafac
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java | 3 | ||||
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/lib/Tag.java | 19 |
2 files changed, 4 insertions, 18 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java index fd99d39e78..3d700ac49e 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectInserter.java @@ -2,6 +2,7 @@ * Copyright (C) 2007, Robin Rosenberg <robin.rosenberg@dewire.com> * Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org> * Copyright (C) 2009, Google Inc. + * Copyright (C) 2010, Chris Aniszczyk <caniszczyk@gmail.com> * and other copyright owners as documented in the project's IP log. * * This program and the accompanying materials are made available @@ -378,7 +379,7 @@ public abstract class ObjectInserter { w.write("\n"); w.write("tagger "); - w.write(tag.getAuthor().toExternalString()); + w.write(tag.getTagger().toExternalString()); w.write('\n'); w.write('\n'); diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Tag.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Tag.java index 25a06c9c6c..4559c1eef1 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/Tag.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/Tag.java @@ -1,6 +1,7 @@ /* * Copyright (C) 2006-2008, Robin Rosenberg <robin.rosenberg@dewire.com> * Copyright (C) 2008, Shawn O. Pearce <spearce@spearce.org> + * Copyright (C) 2010, Chris Aniszczyk <caniszczyk@gmail.com> * and other copyright owners as documented in the project's IP log. * * This program and the accompanying materials are made available @@ -106,22 +107,6 @@ public class Tag { } /** - * @return tagger of a annotated tag or null - */ - public PersonIdent getAuthor() { - decode(); - return tagger; - } - - /** - * Set author of an annotated tag. - * @param a author identifier as a {@link PersonIdent} - */ - public void setAuthor(final PersonIdent a) { - tagger = a; - } - - /** * @return comment of an annotated tag, or null */ public String getMessage() { @@ -223,7 +208,7 @@ public class Tag { } public String toString() { - return "tag[" + getTag() + getType() + getObjId() + " " + getAuthor() + "]"; + return "tag[" + getTag() + getType() + getObjId() + " " + getTagger() + "]"; } /** |