Skip to content

Commit

Permalink
Merge pull request #239 from ngmr/improve-java-idiom-oayoC-03
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 692cde1 + ece37df commit bd60ecd
Showing 1 changed file with 13 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,6 +17,12 @@
*/
package org.apache.yoko.orb.CORBA;

import java.io.Serializable;

import org.omg.CORBA.Any;
import org.omg.CORBA.NO_IMPLEMENT;
import org.omg.CORBA.TypeCode;

final public class DataOutputStream implements org.omg.CORBA.DataOutputStream {
private OutputStream out_;

Expand All @@ -33,10 +39,10 @@ public DataOutputStream(OutputStream out) {
// ------------------------------------------------------------------

public String[] _truncatable_ids() {
throw new org.omg.CORBA.NO_IMPLEMENT();
throw new NO_IMPLEMENT();
}

public void write_any(org.omg.CORBA.Any value) {
public void write_any(Any value) {
out_.write_any(value);
}

Expand Down Expand Up @@ -100,19 +106,19 @@ public void write_Object(org.omg.CORBA.Object value) {
out_.write_Object(value);
}

public void write_Abstract(java.lang.Object value) {
public void write_Abstract(Object value) {
out_.write_abstract_interface(value);
}

public void write_Value(java.io.Serializable value) {
public void write_Value(Serializable value) {
out_.write_value(value);
}

public void write_TypeCode(org.omg.CORBA.TypeCode value) {
public void write_TypeCode(TypeCode value) {
out_.write_TypeCode(value);
}

public void write_any_array(org.omg.CORBA.Any[] seq, int offset, int length) {
public void write_any_array(Any[] seq, int offset, int length) {
for (int i = offset; i < offset + length; i++)
out_.write_any(seq[i]);
}
Expand Down

0 comments on commit bd60ecd

Please sign in to comment.