Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbumenJ committed Jun 14, 2024
1 parent bd17a41 commit a5d18f5
Showing 1 changed file with 1 addition and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.apache.dubbo.aot.api.TypeDescriber;

import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
Expand All @@ -32,29 +31,6 @@
import java.util.Properties;
import java.util.Set;

import com.alibaba.com.caucho.hessian.io.BigDecimalDeserializer;
import com.alibaba.com.caucho.hessian.io.FileDeserializer;
import com.alibaba.com.caucho.hessian.io.HessianRemote;
import com.alibaba.com.caucho.hessian.io.LocaleSerializer;
import com.alibaba.com.caucho.hessian.io.ObjectNameDeserializer;
import com.alibaba.com.caucho.hessian.io.StringValueSerializer;
import com.alibaba.com.caucho.hessian.io.java8.DurationSerializer;
import com.alibaba.com.caucho.hessian.io.java8.InstantSerializer;
import com.alibaba.com.caucho.hessian.io.java8.LocalDateSerializer;
import com.alibaba.com.caucho.hessian.io.java8.LocalDateTimeSerializer;
import com.alibaba.com.caucho.hessian.io.java8.LocalTimeSerializer;
import com.alibaba.com.caucho.hessian.io.java8.MonthDaySerializer;
import com.alibaba.com.caucho.hessian.io.java8.OffsetDateTimeSerializer;
import com.alibaba.com.caucho.hessian.io.java8.OffsetTimeSerializer;
import com.alibaba.com.caucho.hessian.io.java8.PeriodSerializer;
import com.alibaba.com.caucho.hessian.io.java8.YearMonthSerializer;
import com.alibaba.com.caucho.hessian.io.java8.YearSerializer;
import com.alibaba.com.caucho.hessian.io.java8.ZoneIdSerializer;
import com.alibaba.com.caucho.hessian.io.java8.ZoneOffsetSerializer;
import com.alibaba.com.caucho.hessian.io.java8.ZonedDateTimeSerializer;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;

public class HessianReflectionTypeDescriberRegistrar implements ReflectionTypeDescriberRegistrar {

@Override
Expand All @@ -73,9 +49,7 @@ public List<TypeDescriber> getTypeDescribers() {

private void loadFile(String path, List<TypeDescriber> typeDescribers) {
try {
Enumeration<URL> resources = this.getClass()
.getClassLoader()
.getResources(path);
Enumeration<URL> resources = this.getClass().getClassLoader().getResources(path);
while (resources.hasMoreElements()) {
URL url = resources.nextElement();
Properties props = new Properties();
Expand Down

0 comments on commit a5d18f5

Please sign in to comment.