mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-5410 Remove unused code by turning an empty class into an interface.
X-SVN-Rev: 20509
This commit is contained in:
parent
72d5206f37
commit
d919ba5482
2 changed files with 8 additions and 10 deletions
|
@ -12,7 +12,7 @@ import com.ibm.icu.impl.Utility;
|
|||
/**
|
||||
* A post-processor for Chinese text.
|
||||
*/
|
||||
final class RBNFChinesePostProcessor extends RBNFPostProcessor {
|
||||
final class RBNFChinesePostProcessor implements RBNFPostProcessor {
|
||||
private NFRuleSet lastRuleSet;
|
||||
private boolean longForm;
|
||||
private int format;
|
||||
|
@ -25,14 +25,14 @@ final class RBNFChinesePostProcessor extends RBNFPostProcessor {
|
|||
* Initialization routine for this instance, called once
|
||||
* immediately after first construction and never again.
|
||||
*/
|
||||
void init(RuleBasedNumberFormat formatter, String rules) {
|
||||
public void init(RuleBasedNumberFormat formatter, String rules) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Work routine. Post process the output, which was generated by the
|
||||
* ruleset with the given name.
|
||||
*/
|
||||
void process(StringBuffer buf, NFRuleSet ruleSet) {
|
||||
public void process(StringBuffer buf, NFRuleSet ruleSet) {
|
||||
// markers depend on what rule set we are using
|
||||
|
||||
if (ruleSet != lastRuleSet) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2004, International Business Machines Corporation and *
|
||||
* Copyright (C) 2004-2006, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -11,15 +11,14 @@ package com.ibm.icu.text;
|
|||
* Post processor for RBNF output.
|
||||
* @internal
|
||||
*/
|
||||
class RBNFPostProcessor {
|
||||
interface RBNFPostProcessor {
|
||||
/**
|
||||
* Initialization routine for this instance, called once
|
||||
* immediately after first construction and never again.
|
||||
* @param formatter the formatter that will be using this post-processor
|
||||
* @param the special rules for this post-procesor
|
||||
* @param rules the special rules for this post-procesor
|
||||
*/
|
||||
void init(RuleBasedNumberFormat formatter, String rules) {
|
||||
}
|
||||
void init(RuleBasedNumberFormat formatter, String rules);
|
||||
|
||||
/**
|
||||
* Work routine. Post process the output, which was generated by the
|
||||
|
@ -27,6 +26,5 @@ class RBNFPostProcessor {
|
|||
* @param output the output of the main RBNF processing
|
||||
* @param ruleSet the rule set originally invoked to generate the output
|
||||
*/
|
||||
void process(StringBuffer output, NFRuleSet ruleSet) {
|
||||
}
|
||||
void process(StringBuffer output, NFRuleSet ruleSet);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue