0% found this document useful (0 votes)
25K views7 pages

Orclgoogcode

Oracle's key exhibits in that Java complaint.

Uploaded by

Larry Dignan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25K views7 pages

Orclgoogcode

Oracle's key exhibits in that Java complaint.

Uploaded by

Larry Dignan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Case3:10-cv-03561-WHA Document36-10 Filed10/27/10 Page1 of 7

Exhibit J
Case3:10-cv-03561-WHA Document36-10 Filed10/27/10 Page2 of 7
Comparison of Java (J2SE 1.5) and Android versions of [Link]

[Link] (Java version) [Link] (Android version)


[comments removed and spacing adjusted for comparison] [spacing adjusted for comparison]
final class PolicyNodeImpl implements PolicyNode { public class PolicyNodeImpl implements PolicyNode {

private static final String ANY_POLICY = "[Link].0"; private static final String ANY_POLICY = "[Link].0";
private PolicyNodeImpl mParent; private PolicyNodeImpl mParent;
private HashSet mChildren; private HashSet mChildren;
private String mValidPolicy; private String mValidPolicy;
private HashSet mQualifierSet; private HashSet mQualifierSet;
private boolean mCriticalityIndicator; private boolean mCriticalityIndicator;
private HashSet mExpectedPolicySet; private HashSet mExpectedPolicySet;
private boolean mOriginalExpectedPolicySet; private boolean mOriginalExpectedPolicySet;
private int mDepth; private int mDepth;
private boolean isImmutable = false; private boolean isImmutable;

PolicyNodeImpl(PolicyNodeImpl parent, String validPolicy, public PolicyNodeImpl(PolicyNodeImpl policynodeimpl, String s,


Set qualifierSet,boolean criticalityIndicator, Set set, boolean flag,
Set expectedPolicySet,boolean generatedByPolicyMapping) { Set set1, boolean flag1) {
isImmutable = false;
mParent = parent; mParent = policynodeimpl;
mChildren = new HashSet(); mChildren = new HashSet();
if (validPolicy != null) if(s != null) {
mValidPolicy = validPolicy; mValidPolicy = s;
else } else {
mValidPolicy = ""; mValidPolicy = "";
}
if (qualifierSet != null) if(set != null) {
mQualifierSet = new HashSet(qualifierSet); mQualifierSet = new HashSet(set);
else } else {
mQualifierSet = new HashSet(); mQualifierSet = new HashSet();
}
mCriticalityIndicator = criticalityIndicator; mCriticalityIndicator = flag;
if (expectedPolicySet != null) if(set1 != null) {
mExpectedPolicySet = new HashSet(expectedPolicySet); mExpectedPolicySet = new HashSet(set1);
else } else {
mExpectedPolicySet = new HashSet(); mExpectedPolicySet = new HashSet();
}
mOriginalExpectedPolicySet = !generatedByPolicyMapping; mOriginalExpectedPolicySet = !flag1;
if (mParent != null) { if(mParent != null) {
mDepth = [Link]() + 1; mDepth = [Link]() + 1;
[Link](this); [Link](this);
} else { } else {
mDepth = 0; mDepth = 0;
} }
} }

pa-1425347
Case3:10-cv-03561-WHA Document36-10 Filed10/27/10 Page3 of 7
Comparison of Java (J2SE 1.5) and Android versions of [Link]

[Link] (Java version) [Link] (Android version)


[comments removed and spacing adjusted for comparison] [spacing adjusted for comparison]
PolicyNodeImpl(PolicyNodeImpl parent, PolicyNodeImpl(PolicyNodeImpl policynodeimpl,
PolicyNodeImpl node) { PolicyNodeImpl policynodeimpl1) {
this(parent, [Link], [Link], this(policynodeimpl, [Link], ((Set)
[Link], [Link], false); ([Link])), [Link],
} ((Set) ([Link])), false);
}

public PolicyNode getParent() { public PolicyNode getParent() {


return mParent; return mParent;
} }
public Iterator<PolicyNodeImpl> getChildren() { public Iterator getChildren() {
return [Link](mChildren).iterator(); return [Link](mChildren).iterator();
} }

public int getDepth() { public int getDepth() {


return mDepth; return mDepth;
} }

public String getValidPolicy() { public String getValidPolicy() {


return mValidPolicy; return mValidPolicy;
} }
public Set<PolicyQualifierInfo> getPolicyQualifiers() { public Set getPolicyQualifiers() {
return [Link](mQualifierSet); return [Link](mQualifierSet);
} }

public Set<String> getExpectedPolicies() { public Set getExpectedPolicies() {


return [Link](mExpectedPolicySet); return [Link](mExpectedPolicySet);
} }

public boolean isCritical() { public boolean isCritical() {


return mCriticalityIndicator; return mCriticalityIndicator;
} }

public String toString() { public String toString() {


StringBuffer buffer = new StringBuffer([Link]()); StringBuffer stringbuffer = new StringBuffer(asString());
Iterator it = getChildren(); for(Iterator iterator = getChildren(); [Link]();
while ([Link]()) { [Link]((PolicyNodeImpl)[Link]()));
[Link]((PolicyNodeImpl)[Link]());
} return [Link]();
return [Link](); }
}

pa-1425347
Case3:10-cv-03561-WHA Document36-10 Filed10/27/10 Page4 of 7
Comparison of Java (J2SE 1.5) and Android versions of [Link]

[Link] (Java version) [Link] (Android version)


[comments removed and spacing adjusted for comparison] [spacing adjusted for comparison]
boolean isImmutable() { boolean isImmutable() {
return isImmutable; return isImmutable;
} }

void setImmutable() { void setImmutable() {


if (isImmutable) if(isImmutable) return;
return; PolicyNodeImpl policynodeimpl;
Iterator it = [Link](); for(Iterator iterator = [Link](); [Link]();
while ([Link]()) { [Link]())
PolicyNodeImpl node = (PolicyNodeImpl) [Link](); policynodeimpl = (PolicyNodeImpl)[Link]();
[Link]();
} isImmutable = true;
isImmutable = true; }
}

private void addChild(PolicyNodeImpl child) { private void addChild(PolicyNodeImpl policynodeimpl) {


if (isImmutable) { if(isImmutable) {
throw new IllegalStateException("PolicyNode is immutable"); throw new IllegalStateException("PolicyNode is immutable");
} } else {
[Link](child); [Link](policynodeimpl);
} return;
}
}

void addExpectedPolicy(String expectedPolicy) { void addExpectedPolicy(String s) {


if (isImmutable) { if(isImmutable)
throw new IllegalStateException("PolicyNode is immutable"); throw new IllegalStateException("PolicyNode is immutable");
}
if (mOriginalExpectedPolicySet) { if(mOriginalExpectedPolicySet) {
[Link](); [Link]();
mOriginalExpectedPolicySet = false; mOriginalExpectedPolicySet = false;
} }
[Link](expectedPolicy); [Link](s);
} }

void prune(int depth) { void prune(int i) {


if (isImmutable) if(isImmutable)
throw new IllegalStateException("PolicyNode is immutable"); throw new IllegalStateException("PolicyNode is immutable");
if ([Link]() == 0) if([Link]() == 0)
return; return;
Iterator it = [Link](); Iterator iterator = [Link]();
while ([Link]()) { do {
PolicyNodeImpl node = (PolicyNodeImpl) [Link](); if(![Link]()) break;
[Link](depth); PolicyNodeImpl policynodeimpl = (PolicyNodeImpl)[Link]();
if (([Link]() == 0) && (depth > mDepth + 1)) [Link](i);
[Link](); if([Link]() == 0 && i > mDepth + 1)
} [Link]();
} } while(true);
}

pa-1425347
Case3:10-cv-03561-WHA Document36-10 Filed10/27/10 Page5 of 7
Comparison of Java (J2SE 1.5) and Android versions of [Link]

[Link] (Java version) [Link] (Android version)


[comments removed and spacing adjusted for comparison] [spacing adjusted for comparison]
void deleteChild(PolicyNode childNode) { void deleteChild(PolicyNode policynode) {
if (isImmutable) { if(isImmutable) {
throw new IllegalStateException("PolicyNode is immutable"); throw new IllegalStateException("PolicyNode is immutable");
} } else {
[Link](childNode); [Link](policynode);
} return;
}
}

PolicyNodeImpl copyTree() { PolicyNodeImpl copyTree() {


return copyTree(null); return copyTree(null);
} }

private PolicyNodeImpl copyTree(PolicyNodeImpl parent) { private PolicyNodeImpl copyTree(PolicyNodeImpl policynodeimpl) {


PolicyNodeImpl newNode = new PolicyNodeImpl(parent, this); PolicyNodeImpl policynodeimpl1 = new PolicyNodeImpl(policynodeimpl,
this);
Iterator it = [Link](); PolicyNodeImpl policynodeimpl2;
while ([Link]()) { for(Iterator iterator = [Link](); [Link]();
PolicyNodeImpl node = (PolicyNodeImpl) [Link](); [Link](policynodeimpl1))
[Link](newNode); policynodeimpl2 = (PolicyNodeImpl)[Link]();
}
return policynodeimpl1;
return newNode; }
}

Set getPolicyNodes(int depth) { Set getPolicyNodes(int i) {


Set set = new HashSet(); HashSet hashset = new HashSet();
getPolicyNodes(depth, set); getPolicyNodes(i, ((Set) (hashset)));
return set; return hashset;
} }

private void getPolicyNodes(int depth, Set set) { private void getPolicyNodes(int i, Set set) {
if (mDepth == depth) { if(mDepth == i) {
[Link](this); [Link](this);
} else { } else {
Iterator it = [Link](); PolicyNodeImpl policynodeimpl;
while ([Link]()) { for(Iterator iterator = [Link]();
PolicyNodeImpl node = (PolicyNodeImpl) [Link](); [Link](); [Link](i, set))
[Link](depth, set); policynodeimpl = (PolicyNodeImpl)[Link]();
} }
} }
}

pa-1425347
Case3:10-cv-03561-WHA Document36-10 Filed10/27/10 Page6 of 7
Comparison of Java (J2SE 1.5) and Android versions of [Link]

[Link] (Java version) [Link] (Android version)


[comments removed and spacing adjusted for comparison] [spacing adjusted for comparison]
Set getPolicyNodesExpected(int depth, String expectedOID, boolean Set getPolicyNodesExpected(int i, String s, boolean flag) {
matchAny)
{
if ([Link](ANY_POLICY)) { if([Link]("[Link].0"))
return getPolicyNodes(depth); return getPolicyNodes(i);
} else { else
return getPolicyNodesExpectedHelper(depth, expectedOID, return getPolicyNodesExpectedHelper(i, s, flag);
matchAny); }
}
}
private Set getPolicyNodesExpectedHelper(int depth, String expectedOID, private Set getPolicyNodesExpectedHelper(int i, String s, boolean flag)
boolean matchAny)
{ {
HashSet set = new HashSet(); HashSet hashset = new HashSet();

if (mDepth < depth) { if(mDepth < i) {


Iterator it = [Link](); PolicyNodeImpl policynodeimpl;
while ([Link]()) { for(Iterator iterator = [Link]();
PolicyNodeImpl node = (PolicyNodeImpl) [Link](); [Link]();
[Link]([Link](depth, [Link]([Link](i, s, flag)))
expectedOID, policynodeimpl = (PolicyNodeImpl)[Link]();
matchAny));
}
} else { } else if(flag) {
if (matchAny) {
if ([Link](ANY_POLICY)) if([Link]("[Link].0"))
[Link](this); [Link](this);
} else { } else if([Link](s)) {
if ([Link](expectedOID))
[Link](this); [Link](this);
} }
}

return set; return hashset;


} }

Set getPolicyNodesValid(int depth, String validOID) { Set getPolicyNodesValid(int i, String s) {


HashSet set = new HashSet(); HashSet hashset = new HashSet();
if (mDepth < depth) { if(mDepth < i) {
Iterator it = [Link](); PolicyNodeImpl policynodeimpl;
while ([Link]()) { for(Iterator iterator = [Link]();
PolicyNodeImpl node = (PolicyNodeImpl) [Link](); [Link](); [Link]([Link](i,
[Link]([Link](depth, validOID)); s)))
} policynodeimpl = (PolicyNodeImpl)[Link]();
} else {
if ([Link](validOID)) } else if([Link](s)) {
[Link](this); [Link](this);
} }
return set; return hashset;
} }

pa-1425347
Case3:10-cv-03561-WHA Document36-10 Filed10/27/10 Page7 of 7
Comparison of Java (J2SE 1.5) and Android versions of [Link]

[Link] (Java version) [Link] (Android version)


[comments removed and spacing adjusted for comparison] [spacing adjusted for comparison]
private static String policyToString(String oid) { private static String policyToString(String s) {
if ([Link](ANY_POLICY)) { if([Link]("[Link].0")) {
return "anyPolicy"; return "anyPolicy";
} else { } else {
return oid; return s;
} }
} }

String asString() { String asString() {


if (mParent == null) { if(mParent == null)
return "anyPolicy ROOT\n"; return "anyPolicy ROOT\n";
} else {
StringBuffer sb = new StringBuffer(); StringBuffer stringbuffer = new StringBuffer();
for (int i = 0, n = getDepth(); i < n; i++) { int i = 0;
[Link](" "); for(int j = getDepth(); i < j; i++)
} [Link](" ");
[Link](policyToString(getValidPolicy())); [Link](policyToString(getValidPolicy()));
[Link](" CRIT: "); [Link](" CRIT: ");
[Link](isCritical()); [Link](isCritical());
[Link](" EP: "); [Link](" EP: ");
for (Iterator t = getExpectedPolicies().iterator(); [Link](); for(Iterator iterator = getExpectedPolicies().iterator();
) { [Link](); [Link](" ")) {
String policy = (String)[Link]();
[Link](policyToString(policy)); String s = (String)[Link]();
[Link](" "); [Link](policyToString(s));
} }
[Link](" ("); [Link](" (");
[Link](getDepth()); [Link](getDepth());
[Link](")\n"); [Link](")\n");
return [Link](); return [Link]();
} }
} }
}

pa-1425347

You might also like