Skip to content

Commit

Permalink
add default constructor to StringBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
bastie committed Oct 31, 2023
1 parent 2197fb6 commit b7df11e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ When working with XCode add dependency

When working with SwiftPM add dependency

.package(url: "https://github.com/bastie/JavApi4Swift.git", from: "0.3.1")
.package(url: "https://github.com/bastie/JavApi4Swift.git", from: "0.4.1")

or

.Package(url: "https://github.com/bastie/JavApi4Swift.git", .upToNextMajor(from: "0.3.1"))
.Package(url: "https://github.com/bastie/JavApi4Swift.git", .upToNextMajor(from: "0.4.1"))


## Development
Expand Down
8 changes: 7 additions & 1 deletion Sources/JavApi/lang/StringBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@
public class StringBuilder {

var content : String = ""


/// Default constructor
public init (){}

/// Append a String type
/// - Parameters String to append
/// - Returns self (fluent interface pattern)
public func append (_ s : String) -> StringBuilder{
self.content.append(s)
return self
Expand Down

0 comments on commit b7df11e

Please sign in to comment.