Skip to content

Commit

Permalink
Merge pull request #241 from ngmr/improve-java-idiom-oayoC-05
Browse files Browse the repository at this point in the history
style: improve imports
  • Loading branch information
joe-chacko authored Oct 16, 2024
2 parents 86d7f28 + 46c73ed commit 5e24e96
Showing 1 changed file with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2010 IBM Corporation and others.
* Copyright 2024 IBM Corporation and others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -17,8 +17,13 @@
*/
package org.apache.yoko.orb.CORBA;

import java.util.Vector;

import org.omg.CORBA.Bounds;
import org.omg.CORBA.TypeCode;

final public class ExceptionList extends org.omg.CORBA.ExceptionList {
java.util.Vector typeCodeVec_ = new java.util.Vector();
java.util.Vector typeCodeVec_ = new Vector();

// ------------------------------------------------------------------
// Standard IDL to Java Mapping
Expand All @@ -28,23 +33,23 @@ public int count() {
return typeCodeVec_.size();
}

public void add(org.omg.CORBA.TypeCode exc) {
public void add(TypeCode exc) {
typeCodeVec_.addElement(exc);
}

public org.omg.CORBA.TypeCode item(int index) throws org.omg.CORBA.Bounds {
public TypeCode item(int index) throws Bounds {
try {
return (org.omg.CORBA.TypeCode) typeCodeVec_.elementAt(index);
return (TypeCode) typeCodeVec_.elementAt(index);
} catch (ArrayIndexOutOfBoundsException ex) {
throw new org.omg.CORBA.Bounds();
}
}

public void remove(int index) throws org.omg.CORBA.Bounds {
public void remove(int index) throws Bounds {
try {
typeCodeVec_.removeElementAt(index);
} catch (ArrayIndexOutOfBoundsException ex) {
throw new org.omg.CORBA.Bounds();
throw new Bounds();
}
}

Expand Down

0 comments on commit 5e24e96

Please sign in to comment.