Browse Source

Remove deprecated PersonIdent constructor

Change-Id: I3831de1b6df25a52df30d367f0216573e6ee6b53
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
tags/v0.9.1
Chris Aniszczyk 13 years ago
parent
commit
b7465b8fe5
1 changed files with 0 additions and 24 deletions
  1. 0
    24
      org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java

+ 0
- 24
org.eclipse.jgit/src/org/eclipse/jgit/lib/PersonIdent.java View File

@@ -45,14 +45,11 @@

package org.eclipse.jgit.lib;

import java.text.MessageFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;

import org.eclipse.jgit.JGitText;
import org.eclipse.jgit.util.RawParseUtils;
import org.eclipse.jgit.util.SystemReader;

/**
@@ -190,27 +187,6 @@ public class PersonIdent {
tzOffset = aTZ;
}

/**
* Construct a PersonIdent from a string with full name, email, time time
* zone string. The input string must be valid.
*
* @param in
* a Git internal format author/committer string.
*
* @deprecated Use {@link RawParseUtils#parsePersonIdent(String)} instead.
*/
public PersonIdent(final String in) {
final PersonIdent self = RawParseUtils.parsePersonIdent(in);
if (self == null)
throw new IllegalArgumentException(MessageFormat.format(
JGitText.get().malformedpersonIdentString, in));

this.name = self.name;
this.emailAddress = self.emailAddress;
this.when = self.when;
this.tzOffset = self.tzOffset;
}

/**
* @return Name of person
*/

Loading…
Cancel
Save