ICU-8876 disabled Clover where necessary.

Disabled for parts of  PluralRules, RBBIDataWrapper, RBBISetBuilder,
TimeZoneNames, Calendar.

X-SVN-Rev: 30811
This commit is contained in:
Abhinav Gupta 2011-10-12 15:31:19 +00:00
parent ab30e3c400
commit 037aa7865a
5 changed files with 11 additions and 1 deletions

View file

@ -664,6 +664,7 @@ public class PluralRules implements Serializable {
* Implementation of Rule that uses a constraint.
* Provides 'and' and 'or' to combine constraints. Immutable.
*/
///CLOVER:OFF
private static class ConstrainedRule implements Rule, Serializable {
private static final long serialVersionUID = 1;
private final String keyword;
@ -704,6 +705,7 @@ public class PluralRules implements Serializable {
return keyword + ": " + constraint;
}
}
///CLOVER:ON
/*
* Implementation of RuleList that is itself a node in a linked list.

View file

@ -130,6 +130,7 @@ final class RBBIDataWrapper {
return ROW_DATA + state * (fHeader.fCatCount + 4);
}
///CLOVER:OFF
static class TrieFoldingFunc implements Trie.DataManipulate {
public int getFoldingOffset(int data) {
if ((data & 0x8000) != 0) {
@ -139,6 +140,7 @@ final class RBBIDataWrapper {
}
}
}
///CLOVER:ON
static TrieFoldingFunc fTrieFoldingFunc = new TrieFoldingFunc();

View file

@ -1,6 +1,6 @@
/*
*******************************************************************************
* Copyright (C) 2003-2009, International Business Machines Corporation and *
* Copyright (C) 2003-2011, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
*/
@ -301,6 +301,7 @@ class RBBISetBuilder {
// getFoldedValue() function needed for Trie table creation.
//
//-----------------------------------------------------------------------------------
///CLOVER:OFF
class RBBIDataManipulate implements IntTrieBuilder.DataManipulate {
public int getFoldedValue(int start, int offset) {
int value;
@ -321,6 +322,7 @@ class RBBISetBuilder {
return 0;
}
}
///CLOVER:ON
RBBIDataManipulate dm = new RBBIDataManipulate();
//-----------------------------------------------------------------------------------

View file

@ -462,6 +462,7 @@ public abstract class TimeZoneNames implements Serializable {
}
///CLOVER:OFF
/**
* The default implementation of <code>TimeZoneNames</code> used by {@link TimeZoneNames#getInstance(ULocale)} when
* the ICU4J tznamedata component is not available.
@ -551,4 +552,5 @@ public abstract class TimeZoneNames implements Serializable {
}
}
}
///CLOVER:ON
}

View file

@ -1733,6 +1733,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
}
// ==== Factory Stuff ====
///CLOVER:OFF
/**
* A CalendarFactory is used to register new calendar implementation.
* The factory should be able to create a calendar instance for the
@ -1754,6 +1755,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
protected CalendarFactory() {
}
}
///CLOVER:ON
// shim so we can build without service code
static abstract class CalendarShim {