Skip to content

Commit

Permalink
[WeaverGenerator] Changes new line to "\n", how it is called is now u…
Browse files Browse the repository at this point in the history
…niform (Utils.ln())
  • Loading branch information
joaobispo committed Jan 2, 2025
1 parent 12f475c commit 28126cd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* Copyright 2015 SPeCS.
*
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
*
* <p>
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License. under the License.
Expand All @@ -14,9 +14,9 @@
package org.lara.interpreter.weaver.generator.generator.java.helpers;

import org.lara.interpreter.weaver.generator.generator.java.JavaAbstractsGenerator;
import org.lara.interpreter.weaver.generator.generator.java.utils.ConvertUtils;
import org.specs.generators.java.classtypes.JavaClass;

import pt.up.fe.specs.util.SpecsIo;
import org.specs.generators.java.utils.Utils;

public abstract class GeneratorHelper {

Expand All @@ -28,7 +28,7 @@ protected GeneratorHelper(JavaAbstractsGenerator javaGenerator) {

/**
* Generate the base Join Point abstract class, containing the global attributes and actions
*
*
* @param javaGenerator
* @param sanitizedOutPackage
* @param enums
Expand All @@ -37,6 +37,8 @@ protected GeneratorHelper(JavaAbstractsGenerator javaGenerator) {
public abstract JavaClass generate();

protected static String ln() {
return SpecsIo.getNewline();
return Utils.ln();
//return "\n";
//return SpecsIo.getNewline();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.specs.generators.java.types.JavaType;
import org.specs.generators.java.types.JavaTypeFactory;
import org.specs.generators.java.types.Primitive;
import pt.up.fe.specs.util.SpecsIo;
import org.specs.generators.java.utils.Utils;
import tdrc.utils.Pair;
import tdrc.utils.StringUtils;

Expand Down Expand Up @@ -205,7 +205,9 @@ private static StringBuilder reportAvailableTypes(LanguageSpecification langSpec
return message;
}

private static String ln() {
return SpecsIo.getNewline();
public static String ln() {
return Utils.ln();
//return "\n";
//return SpecsIo.getNewline();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import org.specs.generators.java.types.JavaTypeFactory;
import org.specs.generators.java.utils.Utils;
import pt.up.fe.specs.util.SpecsCollections;
import pt.up.fe.specs.util.SpecsIo;
import tdrc.utils.Pair;
import tdrc.utils.StringUtils;

Expand All @@ -48,7 +47,8 @@
public class GeneratorUtils {

private static String ln() {
return SpecsIo.getNewline();
return Utils.ln();
//return SpecsIo.getNewline();
}


Expand Down

0 comments on commit 28126cd

Please sign in to comment.