Project

General

Profile

Actions

Bug #5649

closed

opendap/{DapObjectsToToken,TokenManager,TypeManager} are almost identical

Added by Christopher Brooks over 12 years ago. Updated about 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
actors
Target version:
Start date:
08/06/2012
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5649

Description

opendap/src/org/kepler/dataproxy/datasource/opendap/DapObjectsToToken.java line 65
opendap/src/org/kepler/dataproxy/datasource/opendap/TokenMapper.java line 65 # lines : 257

These two files are ~750 lines each, yet have only 5 different lines
diff opendap/src/org/kepler/dataproxy/datasource/opendap/TokenMapper.java opendap/src/org/kepler/dataproxy/datas\
ource/opendap/DapObjectsToToken.java

65c65
< public class TokenMapper {
---

public class DapObjectsToToken {

321c321
< names[i] = TypeMapper.replacePeriods(dapBT.getName());
---

names[i] = DapObjectsToType.replacePeriods(dapBT.getName());

368c368
< names[i] = TypeMapper.replacePeriods(bt.getName());
---

names[i] = DapObjectsToType.replacePeriods(bt.getName());

412c412
< names0 = TypeMapper.replacePeriods(array.getName());
---

names0 = DapObjectsToType.replacePeriods(array.getName());

417c417
< names[i] = TypeMapper.replacePeriods(array.getName());
---

names[i] = DapObjectsToType.replacePeriods(array.getName());

Actions

Also available in: Atom PDF