From 3b18d3dab31f1ddb8ddebcad4a84ba200583812d Mon Sep 17 00:00:00 2001 From: Matt Muller Date: Wed, 1 May 2024 12:39:14 -0400 Subject: [PATCH] Whitespace changes --- codegen/projections/rails_json/lib/rails_json/client.rb | 1 + codegen/projections/white_label/lib/white_label/client.rb | 1 + .../amazon/smithy/ruby/codegen/generators/ClientGenerator.java | 1 + .../smithy/ruby/codegen/generators/RestBuilderGeneratorBase.java | 1 - 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/codegen/projections/rails_json/lib/rails_json/client.rb b/codegen/projections/rails_json/lib/rails_json/client.rb index 3d1e61e75..6f19f2ba6 100644 --- a/codegen/projections/rails_json/lib/rails_json/client.rb +++ b/codegen/projections/rails_json/lib/rails_json/client.rb @@ -15,6 +15,7 @@ class Client < Hearth::Client # @api private @plugins = Hearth::PluginList.new + # @param [Hash] options # Options used to construct an instance of {Config} def initialize(options = {}) diff --git a/codegen/projections/white_label/lib/white_label/client.rb b/codegen/projections/white_label/lib/white_label/client.rb index 4def64153..cde80b2cd 100644 --- a/codegen/projections/white_label/lib/white_label/client.rb +++ b/codegen/projections/white_label/lib/white_label/client.rb @@ -31,6 +31,7 @@ class Client < Hearth::Client @plugins = Hearth::PluginList.new([ Plugins::TestPlugin.new ]) + # @param [Hash] options # Options used to construct an instance of {Config} def initialize(options = {}) diff --git a/codegen/smithy-ruby-codegen/src/main/java/software/amazon/smithy/ruby/codegen/generators/ClientGenerator.java b/codegen/smithy-ruby-codegen/src/main/java/software/amazon/smithy/ruby/codegen/generators/ClientGenerator.java index 3b0e1c3b1..0d2c6a8e3 100644 --- a/codegen/smithy-ruby-codegen/src/main/java/software/amazon/smithy/ruby/codegen/generators/ClientGenerator.java +++ b/codegen/smithy-ruby-codegen/src/main/java/software/amazon/smithy/ruby/codegen/generators/ClientGenerator.java @@ -94,6 +94,7 @@ public void render() { .openBlock("class Client < $T", Hearth.CLIENT) .write("") .call(() -> renderClassRuntimePlugins(writer)) + .write("") .call(() -> renderInitializeMethod(writer)) .write("\n# @return [Config] config") .write("attr_reader :config\n") diff --git a/codegen/smithy-ruby-codegen/src/main/java/software/amazon/smithy/ruby/codegen/generators/RestBuilderGeneratorBase.java b/codegen/smithy-ruby-codegen/src/main/java/software/amazon/smithy/ruby/codegen/generators/RestBuilderGeneratorBase.java index 128e78b4a..ae01148de 100644 --- a/codegen/smithy-ruby-codegen/src/main/java/software/amazon/smithy/ruby/codegen/generators/RestBuilderGeneratorBase.java +++ b/codegen/smithy-ruby-codegen/src/main/java/software/amazon/smithy/ruby/codegen/generators/RestBuilderGeneratorBase.java @@ -109,7 +109,6 @@ protected abstract void renderPayloadBodyBuilder(OperationShape operation, Shape * def self.build(http_req, input:) * http_req.http_method = 'POST' * http_req.append_path('/') - * * http_req.headers['Content-Type'] = 'application/json' * data = {} * #### START code generated by this method